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

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