summary refs log tree commit diff
path: root/synapse/server.pyi
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/server.pyi
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/server.pyi')
-rw-r--r--synapse/server.pyi21
1 files changed, 21 insertions, 0 deletions
diff --git a/synapse/server.pyi b/synapse/server.pyi
new file mode 100644
index 0000000000..902f725c06
--- /dev/null
+++ b/synapse/server.pyi
@@ -0,0 +1,21 @@
+import synapse.handlers
+import synapse.handlers.auth
+import synapse.handlers.device
+import synapse.storage
+import synapse.state
+
+class HomeServer(object):
+    def get_auth_handler(self) -> synapse.handlers.auth.AuthHandler:
+        pass
+
+    def get_datastore(self) -> synapse.storage.DataStore:
+        pass
+
+    def get_device_handler(self) -> synapse.handlers.device.DeviceHandler:
+        pass
+
+    def get_handlers(self) -> synapse.handlers.Handlers:
+        pass
+
+    def get_state_handler(self) -> synapse.state.StateHandler:
+        pass