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

Method __init_subclass__

src/filelock/_api.py:194–197  ·  view source on GitHub ↗

Setup unique state for lock subclasses.

(cls, **kwargs: dict[str, Any])

Source from the content-addressed store, hash-verified

192 _instances: WeakValueDictionary[str, BaseFileLock]
193
194 def __init_subclass__(cls, **kwargs: dict[str, Any]) -> None:
195 """Setup unique state for lock subclasses."""
196 super().__init_subclass__(**kwargs)
197 cls._instances = WeakValueDictionary()
198
199 def __init__( # noqa: PLR0913
200 self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected