[3.9] bpo-42345: Fix three issues with typing.Literal parameters (GH-23294) by uriyyo · Pull Request #23335 · python/cpython
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.
(cherry picked from commit f03d318)
Co-authored-by: Yurii Karabas 1998uriyyo@gmail.com
https://bugs.python.org/issue42345
Automerge-Triggered-By: GH:gvanrossum