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:
Eklavya Sharma
2016-06-11 15:10:54 +05:30
committed by Tim Abbott
parent 53084fe03c
commit d27a0e162a

View File

@@ -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,)