8
8
9
9
def get_validator_params (node : PlotlyNode , store : dict ):
10
10
"""
11
- Get params for the validator instance for the supplied node
11
+ Get params for the validator instance for the supplied node
12
12
and add them to the store.
13
13
14
14
Parameters
@@ -22,7 +22,7 @@ def get_validator_params(node: PlotlyNode, store: dict):
22
22
-------
23
23
None
24
24
"""
25
- assert isinstance (store , dict )
25
+ assert isinstance (store , dict )
26
26
assert node .is_datatype
27
27
28
28
raw_params = node .get_validator_params ()
@@ -59,8 +59,8 @@ def write_validator_json(outdir, params: dict):
59
59
"""
60
60
Write out a JSON serialization of the validator arguments
61
61
for all validators (keyed by f"{parent_name}.{plotly_name})
62
-
63
- Each validator has a "params": {kwargs} entry and
62
+
63
+ Each validator has a "params": {kwargs} entry and
64
64
a "superclass": str to indicate the class to be instantiated
65
65
66
66
Parameters
@@ -74,6 +74,7 @@ def write_validator_json(outdir, params: dict):
74
74
None
75
75
"""
76
76
import json
77
+
77
78
# Validate inputs
78
79
# ---------------
79
80
if not isinstance (params , dict ):
@@ -103,8 +104,9 @@ def build_data_validator_params(base_trace_node: TraceNode):
103
104
# Get list of trace nodes
104
105
# -----------------------
105
106
tracetype_nodes = base_trace_node .child_compound_datatypes
106
- class_strs_map = dict ([
107
- (node .name_property , node .name_datatype_class ) for node in tracetype_nodes ])
107
+ class_strs_map = dict (
108
+ [(node .name_property , node .name_datatype_class ) for node in tracetype_nodes ]
109
+ )
108
110
109
111
return {
110
112
"class_strs_map" : class_strs_map ,
0 commit comments