]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46981: Remove typing._TypingEmpty (GH-31836)
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 17 Mar 2022 07:52:24 +0000 (09:52 +0200)
committerGitHub <noreply@github.com>
Thu, 17 Mar 2022 07:52:24 +0000 (09:52 +0200)
commit15df8f8d89a0e563bdd15e4cd6734298736a5a1d
treef47f546faa84d3ae5e91cb8ca06edb30f9fc8134
parent4674fd4e938eb4a29ccd5b12c15455bd2a41c335
bpo-46981: Remove typing._TypingEmpty (GH-31836)

* get_args(Tuple[()]) now returns () instead of ((),).
* Tuple[Unpack[Ts]][()] now returns the result equal to Tuple[()].
Lib/test/test_typing.py
Lib/typing.py
Misc/NEWS.d/next/Library/2022-03-12-11-30-42.bpo-46981.ltWCxH.rst [new file with mode: 0644]