Skip to content
This repository was archived by the owner on Jul 5, 2023. It is now read-only.

Conversation

@ddfisher
Copy link
Collaborator

@ddfisher ddfisher commented Jul 1, 2016

Python 2 represents negative numeric literals as Num(n=-NUMBER), but Python 3 represents them as UnaryOp(op=USub(), operand=Num(n=NUMBER)). This makes the conversions module actually make this change.

Fixes python/mypy#1788.

@ddfisher ddfisher merged commit e54f812 into master Jul 1, 2016
@ddfisher ddfisher deleted the unary-minus branch July 1, 2016 23:23
tbbharaj pushed a commit to tbbharaj/typed_ast that referenced this pull request Dec 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants