mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-02-11 02:58:25 -05:00
Fix docstring types
This commit is contained in:
parent
631a73f7ef
commit
f43b6d6d9b
@ -581,7 +581,7 @@ class FederationHandlerRegistry(object):
|
|||||||
|
|
||||||
Args:
|
Args:
|
||||||
edu_type (str): The type of the incoming EDU to register handler for
|
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
|
of the given type. The arguments are the origin server name and
|
||||||
the EDU contents.
|
the EDU contents.
|
||||||
"""
|
"""
|
||||||
@ -597,7 +597,7 @@ class FederationHandlerRegistry(object):
|
|||||||
Args:
|
Args:
|
||||||
query_type (str): Category name of the query, which should match
|
query_type (str): Category name of the query, which should match
|
||||||
the string used by make_query.
|
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
|
incoming queries of this type. The return will be yielded
|
||||||
on and the result used as the response to the query request.
|
on and the result used as the response to the query request.
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user