Method
__init__
(
self,
lock_file: str | os.PathLike[str],
timeout: float = -1,
mode: int = 0o644,
thread_local: bool = True,
my_param: int = 0,
**kwargs: dict[str, Any], # noqa: ARG002
)
Source from the content-addressed store, hash-verified
| 697 | |
| 698 | class MySoftFileLock(SoftFileLock): |
| 699 | def __init__( |
| 700 | self, |
| 701 | lock_file: str | os.PathLike[str], |
| 702 | timeout: float = -1, |
| 703 | mode: int = 0o644, |
| 704 | thread_local: bool = True, |
| 705 | my_param: int = 0, |
| 706 | **kwargs: dict[str, Any], # noqa: ARG002 |
| 707 | ) -> None: |
| 708 | super().__init__(lock_file, timeout, mode, thread_local, blocking=True, is_singleton=True) |
| 709 | self.my_param = my_param |
| 710 | |
| 711 | MySoftFileLock(str(lock_path), my_param=1) |
| 712 | |
Callers
nothing calls this directly
Tested by
no test coverage detected