summary refs log tree commit diff
path: root/synapse/storage/database.py
diff options
context:
space:
mode:
authorJonathan de Jong <jonathan@automatia.nl>2020-10-17 10:51:38 +0200
committerGitHub <noreply@github.com>2020-10-17 09:51:38 +0100
commit79c1f973cee73f2d24c1b9140500e1999b25a479 (patch)
tree8926943c4081c8794660f090c1e1aae2739ae56a /synapse/storage/database.py
parentFix synmark (#8571) (diff)
downloadsynapse-79c1f973cee73f2d24c1b9140500e1999b25a479.tar.xz
Pre-emptively fix synapse.storage.types.Connection for future mypy release (#8577)
Fix the Connection protocol according to typeshed's assertions about sqlite3.Connection
Diffstat (limited to 'synapse/storage/database.py')
-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 763722d6bc..0217e63108 100644
--- a/synapse/storage/database.py
+++ b/synapse/storage/database.py
@@ -160,7 +160,7 @@ class LoggingDatabaseConnection:
         self.conn.__enter__()
         return self
 
-    def __exit__(self, exc_type, exc_value, traceback) -> bool:
+    def __exit__(self, exc_type, exc_value, traceback) -> Optional[bool]:
         return self.conn.__exit__(exc_type, exc_value, traceback)
 
     # Proxy through any unknown lookups to the DB conn class.