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.
4 files changed