Skip to content

Allow unary + in Literal#16729

Merged
hauntsaninja merged 2 commits intopython:masterfrom
JelleZijlstra:unaryop
Jan 2, 2024
Merged

Allow unary + in Literal#16729
hauntsaninja merged 2 commits intopython:masterfrom
JelleZijlstra:unaryop

Conversation

@JelleZijlstra
Copy link
Copy Markdown
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)
@github-actions

This comment has been minimized.

@github-actions
Copy link
Copy Markdown
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
@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