summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2022-08-21 22:12:24 +0100
committerDavid Robertson <davidr@element.io>2022-08-21 22:12:24 +0100
commitdb1c5ffce9b2a8a3e79cb339b4bfd3ff2a588e65 (patch)
treee416416b8df4f1138b7844ea27f70eb3c9672d77
parentannotate writeHeaders (diff)
downloadsynapse-db1c5ffce9b2a8a3e79cb339b4bfd3ff2a588e65.tar.xz
annotate getResourceFor
-rw-r--r--tests/server.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/server.py b/tests/server.py
index d2eeee4d9f..1e6b160409 100644
--- a/tests/server.py
+++ b/tests/server.py
@@ -35,6 +35,7 @@ from typing import (
 from unittest.mock import Mock
 
 import attr
+from twisted.web.iweb import IRequest
 from typing_extensions import Deque
 from zope.interface import implementer
 
@@ -277,7 +278,7 @@ class FakeSite:
         self._resource = resource
         self.reactor = reactor
 
-    def getResourceFor(self, request):
+    def getResourceFor(self, request: IRequest) -> IResource:
         return self._resource