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

Function collect_array

dash/development/_collect_nodes.py:9–19  ·  view source on GitHub ↗
(a_value, base, nodes)

Source from the content-addressed store, hash-verified

7
8
9def collect_array(a_value, base, nodes):
10 a_type = a_value["name"]
11 if is_node(a_type):
12 nodes.append(base)
13 elif a_type in ("shape", "exact"):
14 nodes = collect_nodes(a_value["value"], base + "[]", nodes)
15 elif a_type == "union":
16 nodes = collect_union(a_value["value"], base + "[]", nodes)
17 elif a_type == "objectOf":
18 nodes = collect_object(a_value["value"], base + "[]", nodes)
19 return nodes
20
21
22def collect_union(type_list, base, nodes):

Callers 3

collect_unionFunction · 0.85
collect_objectFunction · 0.85
collect_nodesFunction · 0.85

Calls 5

is_nodeFunction · 0.85
collect_nodesFunction · 0.85
collect_unionFunction · 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…