mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 00:46:03 +00:00
zerver/lib/cache.py: update_user_profile_caches return type is None.
In update_user_profile_caches, the return type in annotation was marked as Any. Change that to None because, nothing is being returned in that function.
This commit is contained in:
committed by
Tim Abbott
parent
53084fe03c
commit
d27a0e162a
@@ -294,7 +294,7 @@ def get_stream_cache_key(stream_name, realm):
|
||||
realm_id, make_safe_digest(stream_name.strip().lower()))
|
||||
|
||||
def update_user_profile_caches(user_profiles):
|
||||
# type: (Iterable[Any]) -> Any
|
||||
# type: (Iterable[Any]) -> None
|
||||
items_for_remote_cache = {}
|
||||
for user_profile in user_profiles:
|
||||
items_for_remote_cache[user_profile_by_email_cache_key(user_profile.email)] = (user_profile,)
|
||||
|
||||
Reference in New Issue
Block a user