mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-12-02 01:04:49 -05:00
disallow-untyped-defs for synapse.state (#11004)
* `disallow-untyped-defs` for `synapse.state` Much smaller than I was expecting!
This commit is contained in:
parent
e564bdd127
commit
f563676c09
5 changed files with 8 additions and 4 deletions
|
|
@ -118,7 +118,7 @@ class _StateCacheEntry:
|
|||
else:
|
||||
self.state_id = _gen_state_id()
|
||||
|
||||
def __len__(self):
|
||||
def __len__(self) -> int:
|
||||
return len(self.state)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue