Content-Length: 303147 | pFad | https://github.com/python/cpython/pull/23335

11 [3.9] bpo-42345: Fix three issues with typing.Literal parameters (GH-23294) by uriyyo · Pull Request #23335 · python/cpython · GitHub
Skip to content

[3.9] bpo-42345: Fix three issues with typing.Literal parameters (GH-23294)#23335

Merged
miss-islington merged 1 commit into
python:3.9from
uriyyo:backport-f03d318-3.9
Nov 17, 2020
Merged

[3.9] bpo-42345: Fix three issues with typing.Literal parameters (GH-23294)#23335
miss-islington merged 1 commit into
python:3.9from
uriyyo:backport-f03d318-3.9

Conversation

@uriyyo

@uriyyo uriyyo commented Nov 17, 2020

Copy link
Copy Markdown
Member

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

…honGH-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..
(cherry picked from commit f03d318)

Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/python/cpython/pull/23335

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy