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

Method __init_subclass__

src/filelock/_read_write.py:274–280  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

272 _instances_under_construction: ClassVar[set[pathlib.Path]] = set()
273
274 def __init_subclass__(cls) -> None:
275 super().__init_subclass__()
276 cls._instances = WeakValueDictionary()
277 cls._instances_lock = threading.RLock()
278 cls._instances_pid = _GETPID()
279 cls._instances_under_construction = set()
280 _register_fork_class(cls)
281
282 @classmethod
283 def get_lock(

Callers

nothing calls this directly

Calls 1

_register_fork_classFunction · 0.85

Tested by

no test coverage detected