MCPcopy Index your code
hub / github.com/pydata/xarray / __delitem__

Method __delitem__

xarray/core/treenode.py:649–656  ·  view source on GitHub ↗

Remove a child node from this tree object.

(self, key: str)

Source from the content-addressed store, hash-verified

647 current_node._set(name, item)
648
649 def __delitem__(self, key: str) -> None:
650 """Remove a child node from this tree object."""
651 if key in self.children:
652 child = self._children[key]
653 del self._children[key]
654 child.orphan()
655 else:
656 raise KeyError(key)
657
658 def same_tree(self, other: Self) -> bool:
659 """True if other node is in the same tree as this node."""

Callers

nothing calls this directly

Calls 1

orphanMethod · 0.80

Tested by

no test coverage detected