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

Function get_data_validator_instance

codegen/validators.py:112–132  ·  view source on GitHub ↗

Construct an instance of the DataValidator (this is the validator that inputs a list of traces) Parameters ---------- base_trace_node : PlotlyNode that is the parent of all of the individual trace nodes Returns ------- BaseDataValidator

(base_trace_node: TraceNode)

Source from the content-addressed store, hash-verified

110
111
112def get_data_validator_instance(base_trace_node: TraceNode):
113 """
114 Construct an instance of the DataValidator
115 (this is the validator that inputs a list of traces)
116
117 Parameters
118 ----------
119 base_trace_node :
120 PlotlyNode that is the parent of all of the individual trace nodes
121 Returns
122 -------
123 BaseDataValidator
124 """
125
126 # Build constructor params
127 # We need to eval the values to convert out of the repr-form of the
128 # params. e.g. '3' -> 3
129 params = build_data_validator_params(base_trace_node)
130
131 # Build and return BaseDataValidator instance
132 return _plotly_utils.basevalidators.BaseDataValidator(**params)

Callers 1

perform_codegenFunction · 0.90

Calls 1

Tested by

no test coverage detected