Skip to content

Commit f88d87a

Browse files
committed
fix: arg names in to_py_arg_name
1 parent ae1c034 commit f88d87a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pyconverter/xml2py/ast_tree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def to_py_arg_name(name: str) -> str:
212212
while len(arg) > 0 and arg[-1] == "_":
213213
arg = arg[:-1]
214214

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

218218
return f"{arg}"

0 commit comments

Comments
 (0)