Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit a633872

Browse files
alter type comment
1 parent 84f31fc commit a633872

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

synapse/federation/federation_server.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,9 +455,10 @@ async def _on_state_ids_request_compute(self, room_id, event_id):
455455
async def _on_context_state_request_compute(
456456
self, room_id: str, event_id: str
457457
) -> Dict[str, list]:
458-
pdus = [] # type: Iterable[EventBase]
459458
if event_id:
460-
pdus = await self.handler.get_state_for_pdu(room_id, event_id)
459+
pdus = await self.handler.get_state_for_pdu(
460+
room_id, event_id
461+
) # type: Iterable[EventBase]
461462
else:
462463
pdus = (await self.state.get_current_state(room_id)).values()
463464

0 commit comments

Comments
 (0)