Add PEP-484 type annotations to global dictionaties.

This commit is contained in:
Tim Abbott
2016-01-22 16:55:47 -08:00
parent 77be524dc4
commit b99313545e
6 changed files with 13 additions and 11 deletions

View File

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