]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.9] bpo-45679: Fix caching of multi-value typing.Literal (GH-29334) (GH-29342)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 3 Nov 2021 09:28:55 +0000 (11:28 +0200)
committerGitHub <noreply@github.com>
Wed, 3 Nov 2021 09:28:55 +0000 (17:28 +0800)
commitbbcf06bf95b448810f1b6f4f119c32e871bfb84c
tree8b60303a3718bfe1307b81a9bd2260e1477d4ef1
parent5f527caf15c52acc3f6e865721cdf781209f11ca
[3.9] bpo-45679: Fix caching of multi-value typing.Literal (GH-29334) (GH-29342)

Literal[True, 2] is no longer equal to Literal[1, 2]..
(cherry picked from commit 634984d7dbdd91e0a51a793eed4d870e139ae1e0)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_typing.py
Lib/typing.py
Misc/NEWS.d/next/Library/2021-10-30-21-11-37.bpo-45679.Dq8Cpu.rst [new file with mode: 0644]