summary refs log tree commit diff
path: root/synapse/rest/client/v2_alpha/register.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2016-07-19 10:21:42 +0100
committerRichard van der Hoff <richard@matrix.org>2016-07-19 18:56:16 +0100
commit3413f1e284593aa63723cdcd52f443d63771ef62 (patch)
tree62dbed96c3dbb0132833160d4f267d941c350e06 /synapse/rest/client/v2_alpha/register.py
parentMerge pull request #931 from matrix-org/rav/refactor_register (diff)
downloadsynapse-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/rest/client/v2_alpha/register.py')
-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 5db953a1e3..2722a58e3e 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()