]> granicus.if.org Git - python/commit
bpo-38191: Accept arbitrary keyword names in NamedTuple() and TypedDict(). (GH-16222)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 17 Sep 2019 18:22:00 +0000 (21:22 +0300)
committerGitHub <noreply@github.com>
Tue, 17 Sep 2019 18:22:00 +0000 (21:22 +0300)
commit2bf31ccab3d17f3f35b42dca97f99576dfe2fc7d
treef92bdc27f3280f735b5d986bc30ef1e97e65430e
parentb57481318e3e3cbacd398b898f9849ec8f2d7eec
bpo-38191: Accept arbitrary keyword names in NamedTuple() and TypedDict(). (GH-16222)

This includes such names as "cls", "self", "typename", "_typename",
"fields" and "_fields".
Passing positional arguments by keyword is deprecated.
Lib/test/test_typing.py
Lib/typing.py
Misc/NEWS.d/next/Library/2019-09-17-12-28-27.bpo-38191.1TU0HV.rst [new file with mode: 0644]