diff options
author | Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> | 2022-05-17 16:29:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-17 15:29:06 +0100 |
commit | 6edefef60289cc54e17fd6af838eb66c4973f5f5 (patch) | |
tree | fd254e6d378e0f877c39826b89e8db47785abcdb /synapse/state/__init__.py | |
parent | Add a new room version for MSC3787's knock+restricted join rule (#12623) (diff) | |
download | synapse-6edefef60289cc54e17fd6af838eb66c4973f5f5.tar.xz |
Add some type hints to datastore (#12717)
Diffstat (limited to 'synapse/state/__init__.py')
-rw-r--r-- | synapse/state/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/state/__init__.py b/synapse/state/__init__.py index 54e41d5375..0219091c4e 100644 --- a/synapse/state/__init__.py +++ b/synapse/state/__init__.py @@ -239,13 +239,13 @@ class StateHandler: entry = await self.resolve_state_groups_for_events(room_id, latest_event_ids) return await self.store.get_joined_users_from_state(room_id, entry) - async def get_current_hosts_in_room(self, room_id: str) -> Set[str]: + async def get_current_hosts_in_room(self, room_id: str) -> FrozenSet[str]: event_ids = await self.store.get_latest_event_ids_in_room(room_id) return await self.get_hosts_in_room_at_events(room_id, event_ids) async def get_hosts_in_room_at_events( self, room_id: str, event_ids: Collection[str] - ) -> Set[str]: + ) -> FrozenSet[str]: """Get the hosts that were in a room at the given event ids Args: |