mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 16:37:23 +00:00
Add PEP-484 type annotations to global dictionaties.
This commit is contained in:
@@ -40,7 +40,7 @@ def get_user_profile(session_id):
|
||||
except (UserProfile.DoesNotExist, KeyError):
|
||||
return None
|
||||
|
||||
connections = dict()
|
||||
connections = dict() # type: Dict[int, SocketConnection]
|
||||
|
||||
def get_connection(id):
|
||||
return connections.get(id)
|
||||
|
||||
Reference in New Issue
Block a user