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

Add unimported-reveal error code #16271

Merged
merged 3 commits into from
Oct 18, 2023
Merged

Add unimported-reveal error code #16271

merged 3 commits into from
Oct 18, 2023

Conversation

sobolevn
Copy link
Member

@sobolevn sobolevn commented Oct 16, 2023

Note: reveal_type(1) # type: ignore is problematic, because it silences the output. So, I've added some docs to advertise not doing so.

Closes #16270

@github-actions

This comment has been minimized.

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.

Generally looks good, but there are some suggestions on the docs.

@github-actions
Copy link
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

vision (https://github.com/pytorch/vision): typechecking got 1.31x slower (44.0s -> 57.5s)
(Performance measurements are based on a single noisy sample)

@sobolevn
Copy link
Member Author

sobolevn commented Oct 18, 2023

Flaky macos + 3.8 build strikes agains :(
I am going to merge this, any further docs changes can be made in separate PRs if needed.
Thanks, @ilevkivskyi for the review!

@sobolevn sobolevn merged commit 838a1d4 into master Oct 18, 2023
18 of 19 checks passed
@sobolevn sobolevn deleted the issue-16270 branch October 18, 2023 08:33
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.

Add an optional error code for unimported reveal_type / reveal_locals
2 participants