MCPcopy Index your code
hub / github.com/plotly/dash / _collect_components

Function _collect_components

dash/_layout_utils.py:113–121  ·  view source on GitHub ↗

Extract Components from a value (single, list, or None).

(value: Any)

Source from the content-addressed store, hash-verified

111
112
113def _collect_components(value: Any) -> list[Component]:
114 """Extract Components from a value (single, list, or None)."""
115 if value is None:
116 return []
117 if isinstance(value, Component):
118 return [value]
119 if isinstance(value, (list, tuple)):
120 return [item for item in value if isinstance(item, Component)]
121 return []
122
123
124def find_component(

Callers 1

get_childrenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…