-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
DEP: Deprecate numpy.typing.mypy_plugin
#28129
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
0f2d96a
to
5712ba4
Compare
5712ba4
to
797acb3
Compare
Thanks Joren. |
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, fine to merge, I had started to have a brief look last night, none of the comments are a big deal, but thought I'll comment anyway.
@jorenham one more comment: This seems like a deprecation that would be good to have a release note (really, all probably should have). If anyone finds this PR because they need the |
As discussed in the triage meeting, this deprecates the mypy plugin.
Generally speaking, it's bad practice to have platform-dependent type annotations.
It can easily lead to platform-specific typing issues, which can be very difficult to debug.
Since the plugin is limited to mypy, using it will also lead to different outcomes for different type-checkers like
pyright
, which goes against the typing specification.