diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2020-07-24 10:53:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-24 10:53:25 -0400 |
commit | e739b205885a7132f3dde67545d56655d83096d7 (patch) | |
tree | 726d1078029d89f57ef6adb9f7c0118b801bcbf1 /synapse/handlers/search.py | |
parent | Do not convert async functions to Deferreds in the interactive_auth_handler (... (diff) | |
download | synapse-e739b205885a7132f3dde67545d56655d83096d7.tar.xz |
Fix up types and comments that refer to Deferreds. (#7945)
Diffstat (limited to 'synapse/handlers/search.py')
-rw-r--r-- | synapse/handlers/search.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/synapse/handlers/search.py b/synapse/handlers/search.py index 4d40d3ac9c..9b312a1558 100644 --- a/synapse/handlers/search.py +++ b/synapse/handlers/search.py @@ -15,6 +15,7 @@ import itertools import logging +from typing import Iterable from unpaddedbase64 import decode_base64, encode_base64 @@ -37,7 +38,7 @@ class SearchHandler(BaseHandler): self.state_store = self.storage.state self.auth = hs.get_auth() - async def get_old_rooms_from_upgraded_room(self, room_id): + async def get_old_rooms_from_upgraded_room(self, room_id: str) -> Iterable[str]: """Retrieves room IDs of old rooms in the history of an upgraded room. We do so by checking the m.room.create event of the room for a @@ -48,10 +49,10 @@ class SearchHandler(BaseHandler): The full list of all found rooms in then returned. Args: - room_id (str): id of the room to search through. + room_id: id of the room to search through. Returns: - Deferred[iterable[str]]: predecessor room ids + Predecessor room ids """ historical_room_ids = [] |