-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Use level "note" for reveal_type and reveal_locals #6919
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In principle I like this change (you can also indent revealed locals as discussed in the issue). But this is changes huge amount of tests, so I think this requires approval from most of core team members.
Great.
Ok, no hurry - I can see that this might cause trouble with pending PRs etc. |
As for this: do you think prepending " - " is good here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this change. It may be worth coordinating when to merge this as this goes stale quickly.
I think just four spaces offset is enough (like in protocol error message notes) |
Ok, updated and rebased. |
Sure! If you rebase it again I'll merge it. |
- sed -i 's/# E: Revealed type/# N: Revealed type/g' test-data/**/*.test - sed -i 's/: error: Revealed type/: note: Revealed type/g' test-data/**/*.test
@msullivan |
Tests were fixed using: - sed -i 's/# E: Revealed type/# N: Revealed type/g' test-data/**/*.test - sed -i 's/: error: Revealed type/: note: Revealed type/g' test-data/**/*.test Fixes #6901.
Tests were fixed using: - sed -i 's/# E: Revealed type/# N: Revealed type/g' test-data/**/*.test - sed -i 's/: error: Revealed type/: note: Revealed type/g' test-data/**/*.test Fixes python#6901.
Update mypy output parser for python/mypy#6919
Fixes #6901.
TODO:
reveal_locals