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

Method _get_ptr

src/pointers/base_pointers.py:270–278  ·  view source on GitHub ↗
(cls, obj: Union[T, "BasePointer[T]"])

Source from the content-addressed store, hash-verified

268
269 @classmethod
270 def _get_ptr(cls, obj: Union[T, "BasePointer[T]"]) -> "BasePointer[T]":
271 return (
272 obj
273 if isinstance(
274 obj,
275 BasePointer,
276 )
277 else cls.make_from(obj)
278 )
279
280 def _cleanup(self) -> None:
281 if self.address:

Callers 1

assignMethod · 0.95

Calls 1

make_fromMethod · 0.45

Tested by

no test coverage detected