MCPcopy
hub / github.com/plotly/dash / is_valid

Method is_valid

dash/mcp/primitives/tools/callback_adapter.py:122–131  ·  view source on GitHub ↗

Whether all input components exist in the layout.

(self)

Source from the content-addressed store, hash-verified

120
121 @cached_property
122 def is_valid(self) -> bool:
123 """Whether all input components exist in the layout."""
124 all_deps = self._cb_info.get("inputs", []) + self._cb_info.get("state", [])
125 for dep in all_deps:
126 dep_id = str(dep.get("id", ""))
127 if dep_id.startswith("{"):
128 continue
129 if find_component(dep_id) is None:
130 return False
131 return True
132
133 @property
134 def output_id(self) -> str:

Callers

nothing calls this directly

Calls 2

find_componentFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected