disallow-untyped-defs for synapse.state (#11004)

* `disallow-untyped-defs` for `synapse.state`

Much smaller than I was expecting!
This commit is contained in:
David Robertson 2021-10-06 18:55:25 +01:00 committed by GitHub
parent e564bdd127
commit f563676c09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 4 deletions

View file

@ -118,7 +118,7 @@ class _StateCacheEntry:
else:
self.state_id = _gen_state_id()
def __len__(self):
def __len__(self) -> int:
return len(self.state)