mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-08-03 17:14:14 -04:00
Merge pull request #933 from matrix-org/rav/type_annotations
Type annotations
This commit is contained in:
commit
c68518dfbb
7 changed files with 47 additions and 0 deletions
|
@ -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()
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue