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

Function _dynamic_constructor

tests/test_subclass_options.py:309–317  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

307
308
309def _dynamic_constructor() -> type[BaseFileLock]:
310 class DynamicFileLock(BaseFileLock):
311 def _acquire(self) -> None:
312 raise NotImplementedError
313
314 def _release(self) -> None:
315 raise NotImplementedError
316
317 return DynamicFileLock
318
319
320class _NarrowFileLock(BaseFileLock):

Calls

no outgoing calls

Tested by

no test coverage detected