Apply suggestions from code review

Co-Authored-By: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
This commit is contained in:
Erik Johnston 2020-01-31 13:47:02 +00:00 committed by GitHub
parent 3069d3b01c
commit 39c4fe8c7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.