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

Method __init__

tests/soft/read_write/test_lock_singleton.py:70–74  ·  view source on GitHub ↗
(self, *args: Any, **kwargs: Any)

Source from the content-addressed store, hash-verified

68
69 class SlowLock(SoftReadWriteLock):
70 def __init__(self, *args: Any, **kwargs: Any) -> None: # ruff:ignore[any-type] # forwards the public constructor unchanged
71 if type(self) is SlowLock:
72 entered.set()
73 assert release.wait(timeout=5)
74 super().__init__(*args, **kwargs)
75
76 class SiblingLock(SoftReadWriteLock):
77 pass

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls 1

waitMethod · 0.80

Tested by

no test coverage detected