Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add back in some things that should have stayed
  • Loading branch information
juliusgeo committed Mar 10, 2022
commit 031af03f982e283c5bec8a496105cc1b497e809d
2 changes: 2 additions & 0 deletions Lib/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -2602,6 +2602,8 @@ def _make_nmtuple(name, types, module, defaults = ()):
nm_tpl = collections.namedtuple(name, fields,
defaults=defaults, module=module)
nm_tpl.__annotations__ = types
nm_tpl.__new__.__annotations__ = types
nm_tpl.__new__.__defaults__ = default
return nm_tpl


Expand Down