diff options
author | David Robertson <davidr@element.io> | 2022-10-01 22:57:20 +0100 |
---|---|---|
committer | David Robertson <davidr@element.io> | 2022-10-01 23:50:03 +0100 |
commit | f8fd5ddefe627db782c2082cabe1a8c61a8c5194 (patch) | |
tree | 0c02feab1f2a262e5c09b1fe1dbf6d7bf52cc9cd | |
parent | Fix errors related to ambiguous db_autocommit (diff) | |
download | synapse-f8fd5ddefe627db782c2082cabe1a8c61a8c5194.tar.xz |
Fix incorrect annotation in the module API
-rw-r--r-- | synapse/module_api/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/module_api/__init__.py b/synapse/module_api/__init__.py index 5d5a841b69..fe979f2158 100644 --- a/synapse/module_api/__init__.py +++ b/synapse/module_api/__init__.py @@ -30,7 +30,7 @@ from typing import ( import attr import jinja2 -from typing_extensions import ParamSpec +from typing_extensions import Concatenate, ParamSpec from twisted.internet import defer from twisted.web.resource import Resource @@ -813,7 +813,7 @@ class ModuleApi: def run_db_interaction( self, desc: str, - func: Callable[P, T], + func: Callable[Concatenate[LoggingTransaction, P], T], *args: P.args, **kwargs: P.kwargs, ) -> "defer.Deferred[T]": |