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

Method __reduce__

src/filelock/_error.py:44–47  ·  view source on GitHub ↗
(
        self,
    )

Source from the content-addressed store, hash-verified

42 super().__init__(self.__str__())
43
44 def __reduce__(
45 self,
46 ) -> tuple[type[SoftFileLockProtocolError], tuple[str, str | None, str]]: # pragma: needs hard-link
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}"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected