Skip to content

Commit 8784a7c

Browse files
Update stubgen.py
1 parent 7736bef commit 8784a7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/stubgen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,7 @@ def _get_namedtuple_fields(self, call: CallExpr) -> list[tuple[str, str]] | None
10281028
elif isinstance(fields_arg, (ListExpr, TupleExpr)):
10291029
field_names = []
10301030
for field in fields_arg.items:
1031-
folded = constant_fold_expr(fields_arg, "<unused>")
1031+
folded = constant_fold_expr(field, "<unused>")
10321032
if not isinstance(folded, str):
10331033
return None
10341034
field_names.append(folded)

0 commit comments

Comments
 (0)