fix transaction context manager signature

This commit is contained in:
Konstantin 2025-10-19 15:07:17 +02:00
parent becb073aac
commit d713806263
2 changed files with 7 additions and 4 deletions

3
.gitignore vendored
View file

@ -94,3 +94,6 @@ ENV/
# pyright # pyright
pyrightconfig.json pyrightconfig.json
# Pyrefly
pyrefly.toml

View file

@ -940,10 +940,10 @@ class Transaction:
def __exit__( def __exit__(
self, self,
exc_type: type[Exception], exc_type: type[BaseException] | None,
exc_value: Exception, exc_value: BaseException | None,
traceback: TracebackType, traceback: TracebackType | None,
): ) -> bool | None:
"""Complete a transaction. This must be the most recently """Complete a transaction. This must be the most recently
entered but not yet exited transaction. If it is the last active entered but not yet exited transaction. If it is the last active
transaction, the database updates are committed. transaction, the database updates are committed.