diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-03-24 06:49:01 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-24 06:49:01 -0400 |
commit | af387cf52ac4641e7d5ade75d3483b0c41d05ebf (patch) | |
tree | d384b1fc0bfa9932fed7cbebfa184e4087982986 /synapse/storage | |
parent | Add a type hints for service notices to the HomeServer object. (#9675) (diff) | |
download | synapse-af387cf52ac4641e7d5ade75d3483b0c41d05ebf.tar.xz |
Add type hints to misc. files. (#9676)
Diffstat (limited to 'synapse/storage')
-rw-r--r-- | synapse/storage/state.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/state.py b/synapse/storage/state.py index aa25bd8350..2e277a21c4 100644 --- a/synapse/storage/state.py +++ b/synapse/storage/state.py @@ -449,7 +449,7 @@ class StateGroupStorage: return self.stores.state._get_state_groups_from_groups(groups, state_filter) async def get_state_for_events( - self, event_ids: List[str], state_filter: StateFilter = StateFilter.all() + self, event_ids: Iterable[str], state_filter: StateFilter = StateFilter.all() ) -> Dict[str, StateMap[EventBase]]: """Given a list of event_ids and type tuples, return a list of state dicts for each event. @@ -485,7 +485,7 @@ class StateGroupStorage: return {event: event_to_state[event] for event in event_ids} async def get_state_ids_for_events( - self, event_ids: List[str], state_filter: StateFilter = StateFilter.all() + self, event_ids: Iterable[str], state_filter: StateFilter = StateFilter.all() ) -> Dict[str, StateMap[str]]: """ Get the state dicts corresponding to a list of events, containing the event_ids |