MCPcopy
hub / github.com/pallets/click / find_root

Method find_root

src/click/core.py:729–734  ·  view source on GitHub ↗

Finds the outermost context.

(self)

Source from the content-addressed store, hash-verified

727 return rv.lstrip()
728
729 def find_root(self) -> Context:
730 """Finds the outermost context."""
731 node = self
732 while node.parent is not None:
733 node = node.parent
734 return node
735
736 def find_object(self, object_type: type[V]) -> V | None:
737 """Finds the closest object of a given type."""

Callers 1

callbackFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected