summary refs log tree commit diff
path: root/synapse/server.pyi
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/server.pyi
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/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