Skip to content

Commit 722a7ba

Browse files
bkap123AlexWaygood
andauthored
Apply suggestion from @AlexWaygood
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
1 parent ea59497 commit 722a7ba

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/typing.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3044,8 +3044,7 @@ class Employee(NamedTuple):
30443044
"""
30453045
types = {n: _type_check(t, f"field {n} annotation must be a type")
30463046
for n, t in fields}
3047-
field_names = list(types)
3048-
nt = _make_nmtuple(typename, field_names, _make_eager_annotate(types), module=_caller())
3047+
nt = _make_nmtuple(typename, types, _make_eager_annotate(types), module=_caller())
30493048
nt.__orig_bases__ = (NamedTuple,)
30503049
return nt
30513050

0 commit comments

Comments
 (0)