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

Commit f7c2bfe

Browse files
committed
Fix return type typo to match what the function actually does
Split out from #9247 It looks like a typo copy/paste from `get_state_for_event` above.
1 parent 3e831f2 commit f7c2bfe

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.d/10050.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix `get_state_ids_for_event` return type typo to match what the function actually does.

synapse/storage/state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ async def get_state_ids_for_event(
540540
state_filter: The state filter used to fetch state from the database.
541541
542542
Returns:
543-
A dict from (type, state_key) -> state_event
543+
A dict from (type, state_key) -> state_event_id
544544
"""
545545
state_map = await self.get_state_ids_for_events(
546546
[event_id], state_filter or StateFilter.all()

0 commit comments

Comments
 (0)