pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/plotly/plotly.py/commit/6f777ef8f5361e628c247ce498989bc743744bd1

ink crossorigen="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/global-9c8f61f9f58ad7b2.css" /> black formatting · plotly/plotly.py@6f777ef · GitHub
Skip to content

Commit 6f777ef

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

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy