MCPcopy Create free account
hub / github.com/RefactoringGuru/design-patterns-python / remove

Method remove

src/Composite/Conceptual/main.py:138–140  ·  view source on GitHub ↗
(self, component: Component)

Source from the content-addressed store, hash-verified

136 component.parent = self
137
138 def remove(self, component: Component) -> None:
139 self._children.remove(component)
140 component.parent = None
141
142 def is_composite(self) -> bool:
143 return True

Callers

nothing calls this directly

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected