summary refs log tree commit diff
path: root/synapse/federation/federation_server.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-03-13 11:29:17 +0000
committerErik Johnston <erik@matrix.org>2018-03-13 11:29:35 +0000
commitf43b6d6d9b7e6f6a94ba3e1886cec6ca864fad43 (patch)
treeb0e25cfc9cd8827dac8edf4e0dee242417fd1122 /synapse/federation/federation_server.py
parentFix tests (diff)
downloadsynapse-f43b6d6d9b7e6f6a94ba3e1886cec6ca864fad43.tar.xz
Fix docstring types
Diffstat (limited to '')
-rw-r--r--synapse/federation/federation_server.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/federation/federation_server.py b/synapse/federation/federation_server.py
index 5b1914f2f4..90302c9537 100644
--- a/synapse/federation/federation_server.py
+++ b/synapse/federation/federation_server.py
@@ -581,7 +581,7 @@ class FederationHandlerRegistry(object):
 
         Args:
             edu_type (str): The type of the incoming EDU to register handler for
-            handler (Callable[str, dict]): A callable invoked on incoming EDU
+            handler (Callable[[str, dict]]): A callable invoked on incoming EDU
                 of the given type. The arguments are the origin server name and
                 the EDU contents.
         """
@@ -597,7 +597,7 @@ class FederationHandlerRegistry(object):
         Args:
             query_type (str): Category name of the query, which should match
                 the string used by make_query.
-            handler (Callable[dict] -> Deferred[dict]): Invoked to handle
+            handler (Callable[[dict], Deferred[dict]]): Invoked to handle
                 incoming queries of this type. The return will be yielded
                 on and the result used as the response to the query request.
         """