Skip to content

Commit

Permalink
Update utils/generator.py
Browse files Browse the repository at this point in the history
Co-authored-by: Quentin Pradet <[email protected]>
  • Loading branch information
miguelgrinberg and pquentin authored Sep 9, 2024
1 parent 9f3977c commit e7155ff
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions utils/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,11 +500,8 @@ def generate_interfaces_py(schema, filename):
classes_list = []
for n in classes:
k = classes[n]
try:
classes_list.index(k)
if k in classes_list:
continue
except ValueError:
pass
classes_list.append(k)
parent = k.get("parent")
parent_index = len(classes_list) - 1
Expand Down

0 comments on commit e7155ff

Please sign in to comment.