Method
__init__
(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
Tested by
no test coverage detected