MCPcopy Create free account
hub / github.com/ZeroIntensity/pointers.py / _cleanup

Method _cleanup

src/pointers/c_pointer.py:70–73  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

68
69 @handle
70 def _cleanup(self) -> None:
71 if self.address:
72 if (type(~self) is not str) and (self.decref):
73 remove_ref(~self)
74
75
76class FunctionPointer(BaseCPointer[Callable[P, T]]): # type: ignore

Callers

nothing calls this directly

Calls 1

remove_refFunction · 0.85

Tested by

no test coverage detected