Merge pull request #933 from matrix-org/rav/type_annotations

Type annotations
This commit is contained in:
Richard van der Hoff 2016-07-20 12:26:32 +01:00 committed by GitHub
commit c68518dfbb
7 changed files with 47 additions and 0 deletions

View file

@ -36,6 +36,10 @@ class BaseHandler(object):
"""
def __init__(self, hs):
"""
Args:
hs (synapse.server.HomeServer):
"""
self.store = hs.get_datastore()
self.auth = hs.get_auth()
self.notifier = hs.get_notifier()

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,