mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 22:14:55 -04:00
Pre-emptively fix synapse.storage.types.Connection for future mypy release (#8577)
Fix the Connection protocol according to typeshed's assertions about sqlite3.Connection
This commit is contained in:
parent
0afd83584b
commit
79c1f973ce
3 changed files with 4 additions and 3 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue