From 58c20bbcb789be9973b197782d594b8273e82176 Mon Sep 17 00:00:00 2001 From: David Robertson Date: Mon, 15 Nov 2021 15:09:57 +0000 Subject: LoggingDatabaseConnection.__enter__ returns itself Could use a fancy TypeVar here but I restrained myself. --- synapse/storage/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'synapse') diff --git a/synapse/storage/database.py b/synapse/storage/database.py index d4cab69ebf..8611fe492c 100644 --- a/synapse/storage/database.py +++ b/synapse/storage/database.py @@ -175,7 +175,7 @@ class LoggingDatabaseConnection: def rollback(self) -> None: self.conn.rollback() - def __enter__(self) -> "Connection": + def __enter__(self) -> "LoggingDatabaseConnection": self.conn.__enter__() return self -- cgit 1.5.1