Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/pydata/xarray
/ _is_descendant_of
Method
_is_descendant_of
xarray/core/treenode.py:126–127 ·
view source on GitHub ↗
(self, node: Self)
Source
from the content-addressed store, hash-verified
124
)
125
126
def
_is_descendant_of(self, node: Self) -> bool:
127
return
any(n is self
for
n in node.parents)
128
129
def
_detach(self, parent: Self | None) -> None:
130
if
parent is not None:
Callers
1
_check_loop
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected