File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -48,12 +48,14 @@ def build_validator_py(node: PlotlyNode):
48
48
49
49
class { class_name } ({ superclass_name } ):
50
50
def __init__(self, plotly_name={ params ['plotly_name' ]} ,
51
- parent_name={ params ['parent_name' ]} ):""" )
51
+ parent_name={ params ['parent_name' ]} ,
52
+ **kwargs):""" )
52
53
53
54
# ### Write constructor ###
54
55
buffer .write (f"""
55
56
super().__init__(plotly_name=plotly_name,
56
- parent_name=parent_name""" )
57
+ parent_name=parent_name,
58
+ **kwargs""" )
57
59
58
60
# Write out remaining constructor parameters
59
61
for attr_name , attr_val in params .items ():
@@ -172,11 +174,13 @@ def build_data_validator_py(base_trace_node: TraceNode):
172
174
class DataValidator(_plotly_utils.basevalidators.BaseDataValidator):
173
175
174
176
def __init__(self, plotly_name={ params ['plotly_name' ]} ,
175
- parent_name={ params ['parent_name' ]} ):
177
+ parent_name={ params ['parent_name' ]} ,
178
+ **kwargs):
176
179
177
180
super().__init__(class_strs_map={ params ['class_strs_map' ]} ,
178
181
plotly_name=plotly_name,
179
- parent_name=parent_name)""" )
182
+ parent_name=parent_name,
183
+ **kwargs)""" )
180
184
181
185
return buffer .getvalue ()
182
186
You can’t perform that action at this time.
0 commit comments