diff options
author | Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> | 2022-05-18 17:02:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-18 16:02:10 +0100 |
commit | 50ae4eafe1f8ba31f1977e5dc11c85f15722f1ee (patch) | |
tree | 1f46c0431a659175d2cc66b8355add33735e6992 /synapse/handlers | |
parent | Merge branch 'master' into develop (diff) | |
download | synapse-50ae4eafe1f8ba31f1977e5dc11c85f15722f1ee.tar.xz |
Add some type hints to `event_federation` datastore (#12753)
Co-authored-by: David Robertson <david.m.robertson1@gmail.com>
Diffstat (limited to 'synapse/handlers')
-rw-r--r-- | synapse/handlers/room_batch.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/handlers/room_batch.py b/synapse/handlers/room_batch.py index 29de7e5bed..fbfd748406 100644 --- a/synapse/handlers/room_batch.py +++ b/synapse/handlers/room_batch.py @@ -53,6 +53,7 @@ class RoomBatchHandler: # We want to use the successor event depth so they appear after `prev_event` because # it has a larger `depth` but before the successor event because the `stream_ordering` # is negative before the successor event. + assert most_recent_prev_event_id is not None successor_event_ids = await self.store.get_successor_events( most_recent_prev_event_id ) @@ -139,6 +140,7 @@ class RoomBatchHandler: _, ) = await self.store.get_max_depth_of(event_ids) # mapping from (type, state_key) -> state_event_id + assert most_recent_event_id is not None prev_state_map = await self.state_store.get_state_ids_for_event( most_recent_event_id ) |