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

Method __exit__

src/filelock/_api.py:379–393  ·  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

377 return self
378
379 def __exit__(
380 self,
381 exc_type: type[BaseException] | None,
382 exc_value: BaseException | None,
383 traceback: TracebackType | None,
384 ) -> None:
385 """
386 Release the lock.
387
388 :param exc_type: the exception type if raised
389 :param exc_value: the exception value if raised
390 :param traceback: the exception traceback if raised
391
392 """
393 self.release()
394
395 def __del__(self) -> None:
396 """Called when the lock object is deleted."""

Callers

nothing calls this directly

Calls 1

releaseMethod · 0.95

Tested by

no test coverage detected