mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 00:24:25 +01:00
fix transaction context manager signature
This commit is contained in:
parent
becb073aac
commit
d713806263
2 changed files with 7 additions and 4 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -94,3 +94,6 @@ ENV/
|
||||||
|
|
||||||
# pyright
|
# pyright
|
||||||
pyrightconfig.json
|
pyrightconfig.json
|
||||||
|
|
||||||
|
# Pyrefly
|
||||||
|
pyrefly.toml
|
||||||
|
|
|
||||||
|
|
@ -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.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue