diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-12-14 07:00:47 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-14 07:00:47 -0500 |
commit | 33abbc327813e65aaa91e10f98a31622c045004c (patch) | |
tree | df1a421f099ff6eee752422388f1c79bb5ee034b /synapse/http/servlet.py | |
parent | checks for generators in database functions (#11564) (diff) | |
download | synapse-33abbc327813e65aaa91e10f98a31622c045004c.tar.xz |
Add missing type hints to synapse.http. (#11571)
Diffstat (limited to 'synapse/http/servlet.py')
-rw-r--r-- | synapse/http/servlet.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/http/servlet.py b/synapse/http/servlet.py index e543cc6e01..4ff840ca0e 100644 --- a/synapse/http/servlet.py +++ b/synapse/http/servlet.py @@ -31,6 +31,7 @@ from typing_extensions import Literal from twisted.web.server import Request from synapse.api.errors import Codes, SynapseError +from synapse.http.server import HttpServer from synapse.types import JsonDict, RoomAlias, RoomID from synapse.util import json_decoder @@ -726,7 +727,7 @@ class RestServlet: into the appropriate HTTP response. """ - def register(self, http_server): + def register(self, http_server: HttpServer) -> None: """Register this servlet with the given HTTP server.""" patterns = getattr(self, "PATTERNS", None) if patterns: |