diff options
author | Richard van der Hoff <richard@matrix.org> | 2016-07-19 10:21:42 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2016-07-19 18:56:16 +0100 |
commit | 3413f1e284593aa63723cdcd52f443d63771ef62 (patch) | |
tree | 62dbed96c3dbb0132833160d4f267d941c350e06 /synapse/handlers/auth.py | |
parent | Merge pull request #931 from matrix-org/rav/refactor_register (diff) | |
download | synapse-3413f1e284593aa63723cdcd52f443d63771ef62.tar.xz |
Type annotations
Add some type annotations to help PyCharm (in particular) to figure out the types of a bunch of things.
Diffstat (limited to 'synapse/handlers/auth.py')
-rw-r--r-- | synapse/handlers/auth.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/handlers/auth.py b/synapse/handlers/auth.py index ce9bc18849..8f83923ddb 100644 --- a/synapse/handlers/auth.py +++ b/synapse/handlers/auth.py @@ -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, |