summary refs log tree commit diff
path: root/synapse/state/v2.py
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2021-10-06 18:55:25 +0100
committerGitHub <noreply@github.com>2021-10-06 17:55:25 +0000
commitf563676c097b830346acc7a4ce3e910c6b10c4c3 (patch)
tree40cdd8b11526d49bcef39d8a763f89c795c83ce7 /synapse/state/v2.py
parentAdd content to the Synapse documentation intro page (#10990) (diff)
downloadsynapse-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/v2.py')
-rw-r--r--synapse/state/v2.py2
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]