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

Use level "note" for reveal_type and reveal_locals #6919

Merged
merged 4 commits into from Jun 18, 2019

Conversation

blueyed
Copy link
Contributor

@blueyed blueyed commented Jun 1, 2019

Fixes #6901.

TODO:

  • indentation with reveal_locals

Copy link
Member

@ilevkivskyi ilevkivskyi left a 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.

@blueyed
Copy link
Contributor Author

blueyed commented Jun 1, 2019

Great.

so I think this requires approval from most of core team members.

Ok, no hurry - I can see that this might cause trouble with pending PRs etc.

@blueyed
Copy link
Contributor Author

blueyed commented Jun 3, 2019

  • indentation with reveal_locals

As for this: do you think prepending " - " is good here?

Copy link
Collaborator

@JukkaL JukkaL left a 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.

@blueyed blueyed changed the title [RFC/WIP] Use level "note" for reveal_type and reveal_locals Use level "note" for reveal_type and reveal_locals Jun 3, 2019
@ilevkivskyi
Copy link
Member

As for this: do you think prepending " - " is good here?

I think just four spaces offset is enough (like in protocol error message notes)

@blueyed
Copy link
Contributor Author

blueyed commented Jun 5, 2019

Ok, updated and rebased.

@msullivan
Copy link
Collaborator

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
@blueyed
Copy link
Contributor Author

blueyed commented Jun 18, 2019

@msullivan
Ok, hope it stays green.

@msullivan msullivan merged commit cb7b242 into python:master Jun 18, 2019
@blueyed blueyed deleted the reveal-note branch June 18, 2019 00:30
gvanrossum pushed a commit that referenced this pull request Jun 18, 2019
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.
PattenR pushed a commit to PattenR/mypy that referenced this pull request Jun 23, 2019
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.
ikonst added a commit to pynamodb/PynamoDB that referenced this pull request Jun 25, 2019
Update mypy output parser for python/mypy#6919
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.

reveal_type / reveal_locals should not use "error" but "note"
5 participants