Skip to content

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

@sobolevn sobolevn commented Jul 18, 2026

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?

@Maxinho96

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 sobolevn closed this Jul 18, 2026
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