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

Commit

Permalink
Fix get_state_ids_for_event return type typo to match what the func…
Browse files Browse the repository at this point in the history
…tion actually does (#10050)

It looks like a typo copy/paste from `get_state_for_event` above.
  • Loading branch information
MadLittleMods committed May 24, 2021
1 parent 3e831f2 commit 5f1198a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/10050.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix typo in `get_state_ids_for_event` docstring where the return type was incorrect.
2 changes: 1 addition & 1 deletion synapse/storage/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ async def get_state_ids_for_event(
state_filter: The state filter used to fetch state from the database.
Returns:
A dict from (type, state_key) -> state_event
A dict from (type, state_key) -> state_event_id
"""
state_map = await self.get_state_ids_for_events(
[event_id], state_filter or StateFilter.all()
Expand Down

0 comments on commit 5f1198a

Please sign in to comment.