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

Method __str__

src/filelock/_error.py:49–51  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

47 return self.__class__, (self._lock_file, self._claim_name, self._reason)
48
49 def __str__(self) -> str:
50 location = self._lock_file if self._claim_name is None else f"{self._lock_file}: claim {self._claim_name!r}"
51 return f"Invalid strict soft-lock state at {location}: {self._reason}"
52
53 @property
54 def lock_file(self) -> str: # pragma: needs hard-link

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected