(self)
| 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 |