diff options
author | David Robertson <davidr@element.io> | 2022-08-21 22:12:24 +0100 |
---|---|---|
committer | David Robertson <davidr@element.io> | 2022-08-21 22:12:24 +0100 |
commit | db1c5ffce9b2a8a3e79cb339b4bfd3ff2a588e65 (patch) | |
tree | e416416b8df4f1138b7844ea27f70eb3c9672d77 | |
parent | annotate writeHeaders (diff) | |
download | synapse-db1c5ffce9b2a8a3e79cb339b4bfd3ff2a588e65.tar.xz |
annotate getResourceFor
-rw-r--r-- | tests/server.py | 3 |
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 |