FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-153896: Deduplicate mutable args in `Literal` type by sobolevn · Pull Request #153913 · python/cpython · GitHub

/ cpython Public

gh-153896: Deduplicate mutable args in Literal type - #153913

Closed
sobolevn wants to merge 1 commit into
python:mainfrom
sobolevn:issue-153896
Closed

gh-153896: Deduplicate mutable args in Literal type#153913
sobolevn wants to merge 1 commit into
python:mainfrom
sobolevn:issue-153896

Conversation

sobolevn commented Jul 18, 2026
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

It does not look to complex as a change, moreover this brings consistency among different arg types. Desipe the fact that Literal[[], []] does not really make much sense as a typing form as of right now.

But, it might be for some custom runtime type checks / etc.

Should we backport this?

Copy link
Copy Markdown
Contributor

@sobolenv I am at the Europython sprints and I was already preparing the PR to fix the issue, but you were faster 😢 my fix looks very similar to yours, would you be so kind to let me merge my first contribution to CPython? 🙏🏻

sobolevn closed this Jul 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL