Skip to content

Commit 4eeb7dd

Browse files
committed
Comment / docstring review updates
1 parent b728b69 commit 4eeb7dd

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

codegen/datatypes.py

-3
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,7 @@ class {datatype_class}({node.name_base_datatype}):\n""")
106106
# ### Property definitions ###
107107
child_datatype_nodes = node.child_datatypes
108108

109-
# Order so that mapped nodes come first, this way the unmapped properties
110-
# take precedence
111109
subtype_nodes = child_datatype_nodes
112-
113110
for subtype_node in subtype_nodes:
114111
if subtype_node.is_array_element:
115112
prop_type = (f"tuple[plotly.graph_objs{node.dotpath_str}." +

codegen/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,7 @@ class MappedPropNode(PlotlyNode):
12241224
def __init__(self, mapped_prop_node, parent,
12251225
prop_name, plotly_schema):
12261226
"""
1227-
Create node that represents legacy a title property.
1227+
Create node that represents a legacy title property.
12281228
e.g. layout.titlefont. These properties are now subproperties under
12291229
the sibling `title` property. e.g. layout.title.font.
12301230

0 commit comments

Comments
 (0)