diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-08-23 08:14:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-23 08:14:17 -0400 |
commit | 2af6d31b78109a989e27128ac655990c35b29d62 (patch) | |
tree | de461f67cf18f7bce536407e07b1eab15deee56a /synapse/rest/client/capabilities.py | |
parent | Do not include stack traces for known exceptions when trying multiple federat... (diff) | |
download | synapse-2af6d31b78109a989e27128ac655990c35b29d62.tar.xz |
Addtional type hints for the REST servlets. (#10665)
Diffstat (limited to 'synapse/rest/client/capabilities.py')
-rw-r--r-- | synapse/rest/client/capabilities.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/rest/client/capabilities.py b/synapse/rest/client/capabilities.py index 093549512e..65b3b5ce2c 100644 --- a/synapse/rest/client/capabilities.py +++ b/synapse/rest/client/capabilities.py @@ -15,6 +15,7 @@ import logging from typing import TYPE_CHECKING, Tuple from synapse.api.room_versions import KNOWN_ROOM_VERSIONS, MSC3244_CAPABILITIES +from synapse.http.server import HttpServer from synapse.http.servlet import RestServlet from synapse.http.site import SynapseRequest from synapse.types import JsonDict @@ -75,5 +76,5 @@ class CapabilitiesRestServlet(RestServlet): return 200, response -def register_servlets(hs: "HomeServer", http_server): +def register_servlets(hs: "HomeServer", http_server: HttpServer) -> None: CapabilitiesRestServlet(hs).register(http_server) |