mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-08 09:32:43 -04:00
Add type annotations to trace
decorator. (#13328)
Functions that are decorated with `trace` are now properly typed and the type hints for them are fixed.
This commit is contained in:
parent
47822fd2e8
commit
a6895dd576
12 changed files with 102 additions and 55 deletions
|
@ -669,7 +669,7 @@ class DeviceWorkerStore(EndToEndKeyWorkerStore):
|
|||
|
||||
@trace
|
||||
async def get_user_devices_from_cache(
|
||||
self, query_list: List[Tuple[str, str]]
|
||||
self, query_list: List[Tuple[str, Optional[str]]]
|
||||
) -> Tuple[Set[str], Dict[str, Dict[str, JsonDict]]]:
|
||||
"""Get the devices (and keys if any) for remote users from the cache.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue