diff options
author | David Robertson <davidr@element.io> | 2022-10-01 22:23:53 +0100 |
---|---|---|
committer | David Robertson <davidr@element.io> | 2022-10-01 22:23:53 +0100 |
commit | 9c34f6eaeedddf230370893103c3f1bdd31901f2 (patch) | |
tree | 24cc8126babfbdd211870ff36237e4567defc301 | |
parent | Annotate advanced function (diff) | |
download | synapse-9c34f6eaeedddf230370893103c3f1bdd31901f2.tar.xz |
Annotate runInteraction
-rw-r--r-- | synapse/storage/database.py | 6 |
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 |