MCPcopy Create free account
hub / github.com/tox-dev/filelock / __exit__

Method __exit__

src/filelock/_api.py:594–608  ·  view source on GitHub ↗

Release the lock. :param exc_type: the exception type if raised :param exc_value: the exception value if raised :param traceback: the exception traceback if raised

(
        self,
        exc_type: type[BaseException] | None,
        exc_value: BaseException | None,
        traceback: TracebackType | None,
    )

Source from the content-addressed store, hash-verified

592 return self
593
594 def __exit__(
595 self,
596 exc_type: type[BaseException] | None,
597 exc_value: BaseException | None,
598 traceback: TracebackType | None,
599 ) -> None:
600 """
601 Release the lock.
602
603 :param exc_type: the exception type if raised
604 :param exc_value: the exception value if raised
605 :param traceback: the exception traceback if raised
606
607 """
608 self.release()
609
610 def __del__(self) -> None:
611 """Called when the lock object is deleted."""

Callers

nothing calls this directly

Calls 1

releaseMethod · 0.95

Tested by

no test coverage detected