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/v2.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 '')
-rw-r--r-- | synapse/state/v2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/state/v2.py b/synapse/state/v2.py index 586b0e12fe..bd18eefd58 100644 --- a/synapse/state/v2.py +++ b/synapse/state/v2.py @@ -481,7 +481,7 @@ async def _reverse_topological_power_sort( if idx % _AWAIT_AFTER_ITERATIONS == 0: await clock.sleep(0) - def _get_power_order(event_id): + def _get_power_order(event_id: str) -> Tuple[int, int, str]: ev = event_map[event_id] pl = event_to_pl[event_id] |