diff options
author | David Robertson <davidr@element.io> | 2021-10-06 18:55:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-06 17:55:25 +0000 |
commit | f563676c097b830346acc7a4ce3e910c6b10c4c3 (patch) | |
tree | 40cdd8b11526d49bcef39d8a763f89c795c83ce7 /synapse/state/__init__.py | |
parent | Add content to the Synapse documentation intro page (#10990) (diff) | |
download | synapse-f563676c097b830346acc7a4ce3e910c6b10c4c3.tar.xz |
`disallow-untyped-defs` for `synapse.state` (#11004)
* `disallow-untyped-defs` for `synapse.state` Much smaller than I was expecting!
Diffstat (limited to 'synapse/state/__init__.py')
-rw-r--r-- | synapse/state/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/state/__init__.py b/synapse/state/__init__.py index c981df3f18..5cf2e12575 100644 --- a/synapse/state/__init__.py +++ b/synapse/state/__init__.py @@ -118,7 +118,7 @@ class _StateCacheEntry: else: self.state_id = _gen_state_id() - def __len__(self): + def __len__(self) -> int: return len(self.state) |