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

Method __init__

tests/core/test_fork_registries.py:89–93  ·  view source on GitHub ↗
(self, *args: Any, **kwargs: Any)

Source from the content-addressed store, hash-verified

87
88 class CustomLock(SoftReadWriteLock):
89 def __init__(self, *args: Any, **kwargs: Any) -> None: # ruff:ignore[any-type] # forwards the public constructor unchanged
90 if type(self) is CustomLock and os.getpid() == parent_pid:
91 entered.set()
92 assert release.wait(timeout=10)
93 super().__init__(*args, **kwargs)
94
95 class ChildLock(CustomLock):
96 pass

Callers

nothing calls this directly

Calls 1

waitMethod · 0.80

Tested by

no test coverage detected