MCPcopy Index your code
hub / github.com/plotly/plotly.py / get_data_validator_params

Function get_data_validator_params

codegen/validators.py:35–54  ·  view source on GitHub ↗

Add a dict of constructor params for the DataValidator to the store. Parameters ---------- base_trace_node : TraceNode PlotlyNode that is the parent of all of the individual trace nodes store : dict Dictionary to store the JSON data for the validator Returns

(base_trace_node: TraceNode, store: dict)

Source from the content-addressed store, hash-verified

33
34
35def get_data_validator_params(base_trace_node: TraceNode, store: dict):
36 """
37 Add a dict of constructor params for the DataValidator to the store.
38
39 Parameters
40 ----------
41 base_trace_node : TraceNode
42 PlotlyNode that is the parent of all of the individual trace nodes
43 store : dict
44 Dictionary to store the JSON data for the validator
45 Returns
46 -------
47 None"""
48 assert isinstance(store, dict)
49
50 params = build_data_validator_params(base_trace_node)
51 store["data"] = {
52 "params": params,
53 "superclass": "BaseDataValidator",
54 }
55
56
57def write_validator_json(outdir, params: dict):

Callers 1

perform_codegenFunction · 0.90

Calls 1

Tested by

no test coverage detected