Skip to content

Use level "note" for reveal_type and reveal_locals - #6919

Merged
msullivan merged 4 commits into
python:masterfrom
blueyed:reveal-note
Jun 18, 2019
Merged

msullivan merged 4 commits into
python:masterfrom
blueyed:reveal-note

Conversation

@blueyed

@blueyed blueyed commented Jun 1, 2019 •

Copy link
Copy Markdown
Contributor

Fixes #6901.

TODO:

  • indentation with reveal_locals

@ilevkivskyi ilevkivskyi left a comment

Copy link
Copy Markdown
Member

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

blueyed commented Jun 1, 2019

Copy link
Copy Markdown
Contributor Author

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

blueyed commented Jun 3, 2019

Copy link
Copy Markdown
Contributor Author
  • indentation with reveal_locals

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

@JukkaL JukkaL left a comment

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
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

blueyed commented Jun 5, 2019

Copy link
Copy Markdown
Contributor Author

Ok, updated and rebased.

@msullivan

Copy link
Copy Markdown
Collaborator

Sure! If you rebase it again I'll merge it.

blueyed added 4 commits June 18, 2019 01:55
- 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

blueyed commented Jun 18, 2019

Copy link
Copy Markdown
Contributor Author

@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