mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-23 05:00:24 +03:00
Fix up return types
This commit is contained in:
parent
39c4fe8c7e
commit
f91bd40f50
1 changed files with 4 additions and 4 deletions
|
@ -725,7 +725,7 @@ class SyncHandler(object):
|
||||||
|
|
||||||
return summary
|
return summary
|
||||||
|
|
||||||
def get_lazy_loaded_members_cache(self, cache_key: Tuple[str,str]) -> LruCache:
|
def get_lazy_loaded_members_cache(self, cache_key: Tuple[str, str]) -> LruCache:
|
||||||
cache = self.lazy_loaded_members_cache.get(cache_key)
|
cache = self.lazy_loaded_members_cache.get(cache_key)
|
||||||
if cache is None:
|
if cache is None:
|
||||||
logger.debug("creating LruCache for %r", cache_key)
|
logger.debug("creating LruCache for %r", cache_key)
|
||||||
|
@ -1053,7 +1053,7 @@ class SyncHandler(object):
|
||||||
@measure_func("_generate_sync_entry_for_groups")
|
@measure_func("_generate_sync_entry_for_groups")
|
||||||
async def _generate_sync_entry_for_groups(
|
async def _generate_sync_entry_for_groups(
|
||||||
self, sync_result_builder: "SyncResultBuilder"
|
self, sync_result_builder: "SyncResultBuilder"
|
||||||
):
|
) -> None:
|
||||||
user_id = sync_result_builder.sync_config.user.to_string()
|
user_id = sync_result_builder.sync_config.user.to_string()
|
||||||
since_token = sync_result_builder.since_token
|
since_token = sync_result_builder.since_token
|
||||||
now_token = sync_result_builder.now_token
|
now_token = sync_result_builder.now_token
|
||||||
|
@ -1103,7 +1103,7 @@ class SyncHandler(object):
|
||||||
newly_joined_or_invited_users: Set[str],
|
newly_joined_or_invited_users: Set[str],
|
||||||
newly_left_rooms: Set[str],
|
newly_left_rooms: Set[str],
|
||||||
newly_left_users: Set[str],
|
newly_left_users: Set[str],
|
||||||
):
|
) -> DeviceLists:
|
||||||
"""Generate the DeviceLists section of sync
|
"""Generate the DeviceLists section of sync
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
|
@ -1176,7 +1176,7 @@ class SyncHandler(object):
|
||||||
|
|
||||||
async def _generate_sync_entry_for_to_device(
|
async def _generate_sync_entry_for_to_device(
|
||||||
self, sync_result_builder: "SyncResultBuilder"
|
self, sync_result_builder: "SyncResultBuilder"
|
||||||
):
|
) -> None:
|
||||||
"""Generates the portion of the sync response. Populates
|
"""Generates the portion of the sync response. Populates
|
||||||
`sync_result_builder` with the result.
|
`sync_result_builder` with the result.
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue