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

Class MySoftFileLock

tests/core/test_singleton.py:88–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86 MyFileLock(str(lock_path), my_param=1)
87
88 class MySoftFileLock(SoftFileLock):
89 def __init__(
90 self,
91 lock_file: str | os.PathLike[str],
92 timeout: float = -1,
93 mode: int = 0o644,
94 thread_local: bool = True,
95 my_param: int = 0,
96 **kwargs: dict[str, Any], # ruff:ignore[unused-method-argument] # matches the base constructor signature; extras are dropped
97 ) -> None:
98 super().__init__(lock_file, timeout, mode, thread_local, blocking=True, is_singleton=True)
99 self.my_param = my_param
100
101 MySoftFileLock(str(lock_path), my_param=1)
102

Callers 1

Calls

no outgoing calls

Tested by 1