summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2021-11-15 15:09:57 +0000
committerDavid Robertson <davidr@element.io>2021-11-16 18:46:51 +0000
commit58c20bbcb789be9973b197782d594b8273e82176 (patch)
tree8e7b2f57aec2c5c878c0f4781bcd825d2ab0e1c6 /synapse
parentmark _cache_id_gen as a required mixin property (diff)
downloadsynapse-58c20bbcb789be9973b197782d594b8273e82176.tar.xz
LoggingDatabaseConnection.__enter__ returns itself
Could use a fancy TypeVar here but I restrained myself.
Diffstat (limited to 'synapse')
-rw-r--r--synapse/storage/database.py2
1 files changed, 1 insertions, 1 deletions
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