summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2020-01-31 13:47:02 +0000
committerGitHub <noreply@github.com>2020-01-31 13:47:02 +0000
commit39c4fe8c7e9f31d944a763b02b72dfde19580e29 (patch)
treed42a1a63cb847949c7bf8275ca69952f98c5e7ce
parentFix unit test (diff)
downloadsynapse-39c4fe8c7e9f31d944a763b02b72dfde19580e29.tar.xz
Apply suggestions from code review
Co-Authored-By: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
-rw-r--r--synapse/handlers/sync.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py
index 3933f06c54..d09b37a87b 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: Any) -> 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)
@@ -1274,7 +1274,7 @@ class SyncHandler(object):
         sync_result_builder: "SyncResultBuilder",
         newly_joined_rooms: Set[str],
         newly_joined_or_invited_users: Set[str],
-    ):
+    ) -> None:
         """Generates the presence portion of the sync response. Populates the
         `sync_result_builder` with the result.