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

Commit

Permalink
alter type comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowJonathan committed Feb 26, 2021
1 parent 84f31fc commit a633872
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions synapse/federation/federation_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,9 +455,10 @@ async def _on_state_ids_request_compute(self, room_id, event_id):
async def _on_context_state_request_compute(
self, room_id: str, event_id: str
) -> Dict[str, list]:
pdus = [] # type: Iterable[EventBase]
if event_id:
pdus = await self.handler.get_state_for_pdu(room_id, event_id)
pdus = await self.handler.get_state_for_pdu(
room_id, event_id
) # type: Iterable[EventBase]
else:
pdus = (await self.state.get_current_state(room_id)).values()

Expand Down

0 comments on commit a633872

Please sign in to comment.