Skip to content

Commit

Permalink
fix: arg names in to_py_arg_name
Browse files Browse the repository at this point in the history
  • Loading branch information
clatapie committed Jan 22, 2025
1 parent ae1c034 commit f88d87a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyconverter/xml2py/ast_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def to_py_arg_name(name: str) -> str:
while len(arg) > 0 and arg[-1] == "_":
arg = arg[:-1]

if arg in ["type", "class", "property", "format", "dir"]:
if arg in ["type", "class", "property", "format", "dir", "set", "iter"]:
arg = f"{arg}_"

return f"{arg}"
Expand Down

0 comments on commit f88d87a

Please sign in to comment.