diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2023-01-26 14:45:24 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-26 14:45:24 -0500 |
commit | fc35e0673f5b46ea0f5e53ef15626b14a452ca82 (patch) | |
tree | ca5cfd9a845b00e6b5e4d44da0e72a834db92459 /synapse/rest/client/transactions.py | |
parent | Fix paginating /relations with a live token (#14866) (diff) | |
download | synapse-fc35e0673f5b46ea0f5e53ef15626b14a452ca82.tar.xz |
Add missing type hints in tests (#14879)
* FIx-up type hints in tests.logging. * Add missing type hints to test_transactions.
Diffstat (limited to 'synapse/rest/client/transactions.py')
-rw-r--r-- | synapse/rest/client/transactions.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/rest/client/transactions.py b/synapse/rest/client/transactions.py index 61375651bc..3f40f1874a 100644 --- a/synapse/rest/client/transactions.py +++ b/synapse/rest/client/transactions.py @@ -19,6 +19,7 @@ from typing import TYPE_CHECKING, Awaitable, Callable, Dict, Tuple from typing_extensions import ParamSpec +from twisted.internet.defer import Deferred from twisted.python.failure import Failure from twisted.web.server import Request @@ -90,7 +91,7 @@ class HttpTransactionCache: fn: Callable[P, Awaitable[Tuple[int, JsonDict]]], *args: P.args, **kwargs: P.kwargs, - ) -> Awaitable[Tuple[int, JsonDict]]: + ) -> "Deferred[Tuple[int, JsonDict]]": """Fetches the response for this transaction, or executes the given function to produce a response for this transaction. |