Whether all input components exist in the layout.
(self)
| 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: |
nothing calls this directly
no test coverage detected