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

Class MySoftFileLock

tests/test_filelock.py:698–709  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

696 MyFileLock(str(lock_path), my_param=1)
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 1

Calls

no outgoing calls

Tested by 1