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

Function build

tasks/capabilities.py:96–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

94def _collects_classes() -> bool:
95 # A dynamically built lock subclass must not outlive its last reference, or the registries keyed on it leak.
96 def build() -> type:
97 class Probe:
98 pass
99
100 return Probe
101
102 reference = weakref.ref(build())
103 gc.collect()

Callers 2

_uncontendedFunction · 0.70
_collects_classesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected