Skip to content

Commit 6f777ef

Browse files
bmaranvillegvwilson
authored andcommitted
black formatting
1 parent cb4c504 commit 6f777ef

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

codegen/validators.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
def get_validator_params(node: PlotlyNode, store: dict):
1010
"""
11-
Get params for the validator instance for the supplied node
11+
Get params for the validator instance for the supplied node
1212
and add them to the store.
1313
1414
Parameters
@@ -22,7 +22,7 @@ def get_validator_params(node: PlotlyNode, store: dict):
2222
-------
2323
None
2424
"""
25-
assert isinstance(store, dict)
25+
assert isinstance(store, dict)
2626
assert node.is_datatype
2727

2828
raw_params = node.get_validator_params()
@@ -59,8 +59,8 @@ def write_validator_json(outdir, params: dict):
5959
"""
6060
Write out a JSON serialization of the validator arguments
6161
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
6464
a "superclass": str to indicate the class to be instantiated
6565
6666
Parameters
@@ -74,6 +74,7 @@ def write_validator_json(outdir, params: dict):
7474
None
7575
"""
7676
import json
77+
7778
# Validate inputs
7879
# ---------------
7980
if not isinstance(params, dict):
@@ -103,8 +104,9 @@ def build_data_validator_params(base_trace_node: TraceNode):
103104
# Get list of trace nodes
104105
# -----------------------
105106
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+
)
108110

109111
return {
110112
"class_strs_map": class_strs_map,

0 commit comments

Comments
 (0)