summary refs log tree commit diff
path: root/synapse/http/servlet.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2021-12-14 07:00:47 -0500
committerGitHub <noreply@github.com>2021-12-14 07:00:47 -0500
commit33abbc327813e65aaa91e10f98a31622c045004c (patch)
treedf1a421f099ff6eee752422388f1c79bb5ee034b /synapse/http/servlet.py
parentchecks for generators in database functions (#11564) (diff)
downloadsynapse-33abbc327813e65aaa91e10f98a31622c045004c.tar.xz
Add missing type hints to synapse.http. (#11571)
Diffstat (limited to 'synapse/http/servlet.py')
-rw-r--r--synapse/http/servlet.py3
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: