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

Function collect_union

dash/development/_collect_nodes.py:22–32  ·  view source on GitHub ↗
(type_list, base, nodes)

Source from the content-addressed store, hash-verified

20
21
22def collect_union(type_list, base, nodes):
23 for t in type_list:
24 if is_node(t["name"]):
25 nodes.append(base)
26 elif is_shape(t["name"]):
27 nodes = collect_nodes(t["value"], base, nodes)
28 elif t["name"] == "arrayOf":
29 nodes = collect_array(t["value"], base, nodes)
30 elif t["name"] == "objectOf":
31 nodes = collect_object(t["value"], base, nodes)
32 return nodes
33
34
35def collect_object(o_value, base, nodes):

Callers 3

collect_arrayFunction · 0.85
collect_objectFunction · 0.85
collect_nodesFunction · 0.85

Calls 6

is_nodeFunction · 0.85
is_shapeFunction · 0.85
collect_nodesFunction · 0.85
collect_arrayFunction · 0.85
collect_objectFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…