From f7c2bfee9b11bc70f8fdf87a903142e3c731cf87 Mon Sep 17 00:00:00 2001 From: Eric Eastwood Date: Mon, 24 May 2021 00:50:21 -0500 Subject: [PATCH] Fix return type typo to match what the function actually does Split out from https://github.com/matrix-org/synapse/pull/9247 It looks like a typo copy/paste from `get_state_for_event` above. --- changelog.d/10050.misc | 1 + synapse/storage/state.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/10050.misc diff --git a/changelog.d/10050.misc b/changelog.d/10050.misc new file mode 100644 index 000000000000..7db497bdceb5 --- /dev/null +++ b/changelog.d/10050.misc @@ -0,0 +1 @@ +Fix `get_state_ids_for_event` return type typo to match what the function actually does. diff --git a/synapse/storage/state.py b/synapse/storage/state.py index cfafba22c5e0..c9dce726cb0e 100644 --- a/synapse/storage/state.py +++ b/synapse/storage/state.py @@ -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()