Forcibly break the lock by removing the lock file, regardless of who holds it.
(self)
| 170 | return False |
| 171 | |
| 172 | def break_lock(self) -> None: |
| 173 | """Forcibly break the lock by removing the lock file, regardless of who holds it.""" |
| 174 | with suppress(OSError): |
| 175 | Path(self.lock_file).unlink() |
| 176 | |
| 177 | def _release(self) -> None: |
| 178 | assert self._context.lock_file_fd is not None # noqa: S101 |
no outgoing calls