Skip to content

Commit e3f6c8a

Browse files
author
esblinov
committed
Adjust LockTraceWrapper.__exit__ signature
1 parent eb6e2b1 commit e3f6c8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

locklib/locks/tracer/tracer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ def __init__(self, lock: LockProtocol) -> None:
1616
def __enter__(self) -> None:
1717
self.acquire()
1818

19-
def __exit__(self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackType]) -> Optional[bool]:
20-
return self.release()
19+
def __exit__(self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackType]) -> None:
20+
self.release()
2121

2222
def acquire(self) -> None:
2323
self.lock.acquire()

0 commit comments

Comments
 (0)