]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42345: Fix three issues with typing.Literal parameters (GH-23294)
authorYurii Karabas <1998uriyyo@gmail.com>
Tue, 17 Nov 2020 02:23:19 +0000 (04:23 +0200)
committerGitHub <noreply@github.com>
Tue, 17 Nov 2020 02:23:19 +0000 (18:23 -0800)
commitf03d318ca42578e45405717aedd4ac26ea52aaed
tree97d64b427c5f171138a10391e088e77d241b9182
parentb0aba1fcdc3da952698d99aec2334faa79a8b68c
bpo-42345: Fix three issues with typing.Literal parameters (GH-23294)

Literal equality no longer depends on the order of arguments.

Fix issue related to `typing.Literal` caching by adding `typed` parameter to `typing._tp_cache` function.

Add deduplication of `typing.Literal` arguments.
Lib/test/test_typing.py
Lib/typing.py
Misc/ACKS
Misc/NEWS.d/next/Library/2020-11-15-15-23-34.bpo-42345.hiIR7x.rst [new file with mode: 0644]