]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45679: Fix caching of multi-value typing.Literal (GH-29334)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 31 Oct 2021 08:43:40 +0000 (01:43 -0700)
committerGitHub <noreply@github.com>
Sun, 31 Oct 2021 08:43:40 +0000 (01:43 -0700)
commit3997f3ce8ab15269fc800062f75411865dbc0d55
tree822b70e4728cc1c8bf3276d1a55e714ef643b60f
parentda222b7cc804adb1508f806d7fc6a2e65b8423e8
bpo-45679: Fix caching of multi-value typing.Literal (GH-29334)

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]