gh-153896: Deduplicate mutable args in `Literal` type by sobolevn · Pull Request #153913 · python/cpython · GitHub
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

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

@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