1
0
Fork 0
mirror of https://github.com/element-hq/synapse.git synced 2025-03-31 03:45:13 +00:00

More types

This commit is contained in:
David Baker 2025-03-28 15:50:47 +00:00
parent 4ea8507bbd
commit 9ba2c7030b
2 changed files with 2 additions and 2 deletions

View file

@ -575,7 +575,7 @@ class SlidingSyncHandler:
to_token: StreamToken,
newly_joined: bool,
is_dm: bool,
room_receipts: Sequence[ReceiptInRoom],
room_receipts: Optional[Sequence[ReceiptInRoom]],
) -> SlidingSyncResult.RoomResult:
"""
Fetch room data for the sync response.

View file

@ -740,7 +740,7 @@ class SlidingSyncRoomLists:
previous_connection_state: PerConnectionState,
from_token: Optional[StreamToken],
to_token: StreamToken,
relevant_room_map: Dict[str, RoomSyncConfig],
relevant_room_map: Mapping[str, RoomSyncConfig],
receipts: Mapping[str, Sequence[ReceiptInRoom]],
) -> Dict[str, RoomSyncConfig]:
"""Filters the `relevant_room_map` down to those rooms that may have