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 11, 2024
1 parent 1c1a9d1 commit 3eeaacd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions utils/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,7 @@ def add_attribute(self, k, arg, for_types_py=False):
# insert in the right place so that all required arguments
# appear at the top of the argument list
i = 0
for i in range(len(k["args"]) + 1):
if i == len(k["args"]):
for i, arg in enumerate(k["args"]):
break
if k["args"][i].get("positional"):
continue
Expand Down

0 comments on commit 3eeaacd

Please sign in to comment.