Type annotations

Add some type annotations to help PyCharm (in particular) to figure out the
types of a bunch of things.
This commit is contained in:
Richard van der Hoff 2016-07-19 10:21:42 +01:00
parent b9e997f561
commit 3413f1e284
6 changed files with 46 additions and 0 deletions

View file

@ -45,6 +45,10 @@ class AuthHandler(BaseHandler):
SESSION_EXPIRE_MS = 48 * 60 * 60 * 1000
def __init__(self, hs):
"""
Args:
hs (synapse.server.HomeServer):
"""
super(AuthHandler, self).__init__(hs)
self.checkers = {
LoginType.PASSWORD: self._check_password_auth,