summary refs log tree commit diff
path: root/synapse/server.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-12-11 17:27:46 +0000
committerErik Johnston <erik@matrix.org>2019-12-11 17:27:46 +0000
commitcfcfb57e581bc1577a5fba3b34a1b1af7ccb6c0d (patch)
tree5e32cde7f08538753583ba5d2b7eff34ed4851b1 /synapse/server.py
parentNewsfile (diff)
downloadsynapse-cfcfb57e581bc1577a5fba3b34a1b1af7ccb6c0d.tar.xz
Add new config param to docstring and add types
Diffstat (limited to 'synapse/server.py')
-rw-r--r--synapse/server.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/server.py b/synapse/server.py
index a8b5459ff3..5021068ce0 100644
--- a/synapse/server.py
+++ b/synapse/server.py
@@ -34,6 +34,7 @@ from synapse.api.filtering import Filtering
 from synapse.api.ratelimiting import Ratelimiter
 from synapse.appservice.api import ApplicationServiceApi
 from synapse.appservice.scheduler import ApplicationServiceScheduler
+from synapse.config.homeserver import HomeServerConfig
 from synapse.crypto import context_factory
 from synapse.crypto.keyring import Keyring
 from synapse.events.builder import EventBuilderFactory
@@ -210,10 +211,11 @@ class HomeServer(object):
     # instantiated during setup() for future return by get_datastore()
     DATASTORE_CLASS = abc.abstractproperty()
 
-    def __init__(self, hostname, config, reactor=None, **kwargs):
+    def __init__(self, hostname: str, config: HomeServerConfig, reactor=None, **kwargs):
         """
         Args:
             hostname : The hostname for the server.
+            config: The full config for the homeserver.
         """
         if not reactor:
             from twisted.internet import reactor