Context manager protocol: release the lock upon exiting the 'with' block.
(self, exc_type: Any, exc_val: Any, exc_tb: Any)
| 66 | return self |
| 67 | |
| 68 | def __exit__(self, exc_type: Any, exc_val: Any, exc_tb: Any) -> Literal[False]: |
| 69 | """Context manager protocol: release the lock upon exiting the 'with' block.""" |
| 70 | self.release() |
| 71 | return False # Propagate exceptions, if any |
| 72 | |
| 73 | def acquire(self) -> bool: |
| 74 | """Acquire an exclusive, non-blocking lock on the file. |