mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 23:13:25 +00:00
Add PEP-484 type annotations to global dictionaties.
This commit is contained in:
@@ -296,11 +296,11 @@ class EventQueue(object):
|
||||
return contents
|
||||
|
||||
# maps queue ids to client descriptors
|
||||
clients = {}
|
||||
clients = {} # type: Dict[int, ClientDescriptor]
|
||||
# maps user id to list of client descriptors
|
||||
user_clients = {}
|
||||
user_clients = {} # type: Dict[int, List[ClientDescriptor]]
|
||||
# maps realm id to list of client descriptors with all_public_streams=True
|
||||
realm_clients_all_streams = {}
|
||||
realm_clients_all_streams = {} # type: Dict[int, List[ClientDescriptor]]
|
||||
|
||||
# list of registered gc hooks.
|
||||
# each one will be called with a user profile id, queue, and bool
|
||||
|
||||
Reference in New Issue
Block a user