Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow unary + in Literal #16729

Merged
merged 2 commits into from
Jan 2, 2024
Merged

Allow unary + in Literal #16729

merged 2 commits into from
Jan 2, 2024

Conversation

JelleZijlstra
Copy link
Member

Implements python/typing#1550

Fixes #16727 (a trivial bug I found while implementing this feature)

Implements python/typing#1550

Fixes python#16727 (a trivial bug I found while implementing this feature)

This comment has been minimized.

Copy link
Contributor

github-actions bot commented Jan 2, 2024

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@hauntsaninja hauntsaninja merged commit f9e8e0b into python:master Jan 2, 2024
17 of 18 checks passed
@JelleZijlstra JelleZijlstra deleted the unaryop branch January 12, 2024 04:52
@JelleZijlstra JelleZijlstra restored the unaryop branch September 10, 2024 23:37
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.

expression has type "Literal[-1]", variable has type "Literal[-1]"
2 participants