From a591a3f7783d6a17ac9350d431ec00d6d8e5a45e Mon Sep 17 00:00:00 2001 From: David Robertson Date: Tue, 27 Sep 2022 18:02:47 +0100 Subject: [PATCH] inner_func takes a twisted Connection object --- synapse/storage/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/storage/database.py b/synapse/storage/database.py index a252f8eaa0..f952cf946c 100644 --- a/synapse/storage/database.py +++ b/synapse/storage/database.py @@ -916,7 +916,7 @@ class DatabasePool: start_time = monotonic_time() - def inner_func(conn, *args, **kwargs): + def inner_func(conn: adbapi.Connection, *args, **kwargs): # We shouldn't be in a transaction. If we are then something # somewhere hasn't committed after doing work. (This is likely only # possible during startup, as `run*` will ensure changes are