]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42345: Fix hash implementation of typing.Literal (GH-23383)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 19 Nov 2020 16:51:01 +0000 (08:51 -0800)
committerGitHub <noreply@github.com>
Thu, 19 Nov 2020 16:51:01 +0000 (08:51 -0800)
commit2acd9d0c6ccf0b4360e3b63beddb97996bcb9bb1
treea330c5d53da9c7d130f22ad39463919123dd06c0
parent87c87b5bd6f6a5924b485398f353308410f9d8c1
bpo-42345: Fix hash implementation of typing.Literal (GH-23383)

Fix hash implementation of `typing.Literal`.

Update docs regarding `typing.Litaral` caching.

Base implementation was done in PR GH-23294.
(cherry picked from commit 1b54077ff6f5c1379e097e9f8e8648da9826d6ec)

Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
Doc/library/typing.rst
Lib/test/test_typing.py
Lib/typing.py