mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-07 13:04:56 -04:00
Add type hints to various handlers. (#9223)
With this change all handlers except the e2e_* ones have type hints enabled.
This commit is contained in:
parent
26837d5dbe
commit
1baab20352
14 changed files with 205 additions and 138 deletions
|
@ -24,6 +24,7 @@ from synapse.storage._base import SQLBaseStore, db_to_json, make_in_list_sql_cla
|
|||
from synapse.storage.database import DatabasePool
|
||||
from synapse.storage.databases.main.events_worker import EventRedactBehaviour
|
||||
from synapse.storage.engines import PostgresEngine, Sqlite3Engine
|
||||
from synapse.types import Collection
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
@ -460,7 +461,7 @@ class SearchStore(SearchBackgroundUpdateStore):
|
|||
|
||||
async def search_rooms(
|
||||
self,
|
||||
room_ids: List[str],
|
||||
room_ids: Collection[str],
|
||||
search_term: str,
|
||||
keys: List[str],
|
||||
limit,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue