From f91bd40f50804f31a1f2c77717fb7daf34c65f36 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Fri, 31 Jan 2020 13:53:12 +0000 Subject: [PATCH] Fix up return types --- synapse/handlers/sync.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py index d09b37a87b..5b16d735a2 100644 --- a/synapse/handlers/sync.py +++ b/synapse/handlers/sync.py @@ -725,7 +725,7 @@ class SyncHandler(object): 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) if cache is None: logger.debug("creating LruCache for %r", cache_key) @@ -1053,7 +1053,7 @@ class SyncHandler(object): @measure_func("_generate_sync_entry_for_groups") async def _generate_sync_entry_for_groups( self, sync_result_builder: "SyncResultBuilder" - ): + ) -> None: user_id = sync_result_builder.sync_config.user.to_string() since_token = sync_result_builder.since_token now_token = sync_result_builder.now_token @@ -1103,7 +1103,7 @@ class SyncHandler(object): newly_joined_or_invited_users: Set[str], newly_left_rooms: Set[str], newly_left_users: Set[str], - ): + ) -> DeviceLists: """Generate the DeviceLists section of sync Args: @@ -1176,7 +1176,7 @@ class SyncHandler(object): async def _generate_sync_entry_for_to_device( self, sync_result_builder: "SyncResultBuilder" - ): + ) -> None: """Generates the portion of the sync response. Populates `sync_result_builder` with the result. """