Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Fix docstring types
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Mar 13, 2018
1 parent 631a73f commit f43b6d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synapse/federation/federation_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ def register_edu_handler(self, edu_type, handler):
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.
"""
Expand All @@ -597,7 +597,7 @@ def register_query_handler(self, query_type, handler):
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.
"""
Expand Down

0 comments on commit f43b6d6

Please sign in to comment.