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

@ -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]