summary refs log tree commit diff
path: root/synapse/rest/client/v2_alpha
diff options
context:
space:
mode:
authorRichard van der Hoff <github@rvanderhoff.org.uk>2016-07-20 12:26:32 +0100
committerGitHub <noreply@github.com>2016-07-20 12:26:32 +0100
commitc68518dfbbca29bb1c80c17f2bd81799b9d829c9 (patch)
treeb7031e4f2fa024b9e928154fe1a0884b72f381d8 /synapse/rest/client/v2_alpha
parentMerge pull request #932 from matrix-org/rav/register_refactor (diff)
parentMANIFEST.in: Add *.pyi (diff)
downloadsynapse-c68518dfbbca29bb1c80c17f2bd81799b9d829c9.tar.xz
Merge pull request #933 from matrix-org/rav/type_annotations
Type annotations
Diffstat (limited to 'synapse/rest/client/v2_alpha')
-rw-r--r--synapse/rest/client/v2_alpha/register.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/synapse/rest/client/v2_alpha/register.py b/synapse/rest/client/v2_alpha/register.py
index 04004cfbbd..b7e03ea9d1 100644
--- a/synapse/rest/client/v2_alpha/register.py
+++ b/synapse/rest/client/v2_alpha/register.py
@@ -45,6 +45,10 @@ class RegisterRequestTokenRestServlet(RestServlet):
     PATTERNS = client_v2_patterns("/register/email/requestToken$")
 
     def __init__(self, hs):
+        """
+        Args:
+            hs (synapse.server.HomeServer): server
+        """
         super(RegisterRequestTokenRestServlet, self).__init__()
         self.hs = hs
         self.identity_handler = hs.get_handlers().identity_handler
@@ -77,7 +81,12 @@ class RegisterRestServlet(RestServlet):
     PATTERNS = client_v2_patterns("/register$")
 
     def __init__(self, hs):
+        """
+        Args:
+            hs (synapse.server.HomeServer): server
+        """
         super(RegisterRestServlet, self).__init__()
+
         self.hs = hs
         self.auth = hs.get_auth()
         self.store = hs.get_datastore()