Skip to content

Commit b86d44b

Browse files
committed
specify type and instance for super() for codegen code
1 parent af0d247 commit b86d44b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

codegen/validators.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def __init__(self, plotly_name={params['plotly_name']},
5353

5454
# ### Write constructor ###
5555
buffer.write(f"""
56-
super().__init__(plotly_name=plotly_name,
56+
super({superclass_name}, self).__init__(plotly_name=plotly_name,
5757
parent_name=parent_name,
5858
**kwargs""")
5959

@@ -177,7 +177,7 @@ def __init__(self, plotly_name={params['plotly_name']},
177177
parent_name={params['parent_name']},
178178
**kwargs):
179179
180-
super().__init__(class_strs_map={params['class_strs_map']},
180+
super(_plotly_utils.basevalidators.BaseDataValidator, self).__init__(class_strs_map={params['class_strs_map']},
181181
plotly_name=plotly_name,
182182
parent_name=parent_name,
183183
**kwargs)""")

0 commit comments

Comments
 (0)