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

Function collect_object

dash/development/_collect_nodes.py:35–46  ·  view source on GitHub ↗
(o_value, base, nodes)

Source from the content-addressed store, hash-verified

33
34
35def collect_object(o_value, base, nodes):
36 o_name = o_value.get("name")
37 o_key = base + "{}"
38 if is_node(o_name):
39 nodes.append(o_key)
40 elif is_shape(o_name):
41 nodes = collect_nodes(o_value.get("value", {}), o_key, nodes)
42 elif o_name == "union":
43 nodes = collect_union(o_value.get("value"), o_key, nodes)
44 elif o_name == "arrayOf":
45 nodes = collect_array(o_value, o_key, nodes)
46 return nodes
47
48
49def collect_nodes(metadata, base="", nodes=None):

Callers 3

collect_arrayFunction · 0.85
collect_unionFunction · 0.85
collect_nodesFunction · 0.85

Calls 7

is_nodeFunction · 0.85
is_shapeFunction · 0.85
collect_nodesFunction · 0.85
collect_unionFunction · 0.85
collect_arrayFunction · 0.85
getMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…