MCPcopy Create free account
hub / github.com/PyTables/PyTables / dereference

Method dereference

tables/link.py:251–260  ·  view source on GitHub ↗

Dereference a link.

(self)

Source from the content-addressed store, hash-verified

249 return self.dereference()
250
251 def dereference(self) -> Node | None:
252 """Dereference a link."""
253 if self._v_isopen:
254 target = self.target
255 # Check for relative pathnames
256 if not self.target.startswith("/"):
257 target = self._v_parent._g_join(self.target)
258 return self._v_file._get_node(target)
259 else:
260 return None
261
262 def __getattribute__(self, attrname: str) -> Any:
263

Callers 7

__call__Method · 0.95
__getattribute__Method · 0.95
__setattr__Method · 0.95
__getitem__Method · 0.95
__setitem__Method · 0.95
is_danglingMethod · 0.95
__init__Method · 0.80

Calls 2

_g_joinMethod · 0.80
_get_nodeMethod · 0.80

Tested by

no test coverage detected