summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2022-10-01 22:23:53 +0100
committerDavid Robertson <davidr@element.io>2022-10-01 22:23:53 +0100
commit9c34f6eaeedddf230370893103c3f1bdd31901f2 (patch)
tree24cc8126babfbdd211870ff36237e4567defc301
parentAnnotate advanced function (diff)
downloadsynapse-9c34f6eaeedddf230370893103c3f1bdd31901f2.tar.xz
Annotate runInteraction
-rw-r--r--synapse/storage/database.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/storage/database.py b/synapse/storage/database.py
index 553c8723da..4036be5cc7 100644
--- a/synapse/storage/database.py
+++ b/synapse/storage/database.py
@@ -801,9 +801,9 @@ class DatabasePool:
     async def runInteraction(
         self,
         desc: str,
-        func: Callable[..., R],
-        *args: Any,
-        **kwargs: Any,
+        func: Callable[Concatenate[LoggingTransaction, P], R],
+        *args: P.args,
+        **kwargs: P.kwargs,
     ) -> R:
         return await self.runInteraction_advanced(
             desc, False, None, func, *args, **kwargs