-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
dmypy suggest can now suggest through contextmanager-based decorators #18948
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
dmypy suggest can now suggest through contextmanager-based decorators #18948
Conversation
737c5ac
to
0db2c46
Compare
0db2c46
to
f921981
Compare
Diff from mypy_primer, showing the effect of this PR on open source code: vision (https://github.com/pytorch/vision)
+ torchvision/utils.py:271: error: Unused "type: ignore" comment [unused-ignore]
|
first commit automated via https://github.com/getsentry/auto-type-annotate - I used these patches to mypy: - python/mypy#18948 - (the line mentioned in the issue commented out): python/mypy#18940 (comment) - and with this unreverted (coming soon!): #89854 <!-- Describe your PR here. -->
first commit automated via https://github.com/getsentry/auto-type-annotate - I used these patches to mypy: - python/mypy#18948 - (the line mentioned in the issue commented out): python/mypy#18940 (comment) - and with this unreverted (coming soon!): #89854 <!-- Describe your PR 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.
Okay, the change looks good, but how come modifying the suggestions engine results in a primer hit? We don't run dmypy suggest
with primer...
pretty sure it's a race of another unrelated patch being merged and the use of |
I think mypy is nondeterministic on torchvision, see hauntsaninja/mypy_primer#161 mypy_primer uses the merge base on PRs, so the diff should be trustworthy |
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.
Thanks for the fix!
No description provided.