Skip to content

Release blocker: Mypy ignores NumType's numpy-stubs #534

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

Closed
jorenham opened this issue Apr 29, 2025 · 2 comments
Closed

Release blocker: Mypy ignores NumType's numpy-stubs #534

jorenham opened this issue Apr 29, 2025 · 2 comments

Comments

@jorenham
Copy link
Member

Unless all .pyi are deleted from the numpy installation directory, mypy will prioritize NumPy's bundled stubs over NumType's numpy-stubs, contradicting the typing spec.

So until python/mypy#18997 is fixed and included in a mypy release, we won't be able to release NumType (unless we drop mypy support, but I don't want that).


More info:

@jorenham jorenham added this to the v2.2.5.0 milestone Apr 29, 2025
@jorenham jorenham pinned this issue Apr 29, 2025
@jorenham jorenham changed the title Mypy ignores NumType's numpy-stubs Release blocker: Mypy ignores NumType's numpy-stubs Apr 29, 2025
@jorenham
Copy link
Member Author

I submitted a PR that fixes this issue python/mypy#19001. Hopefully it will be included in the upcoming mypy 1.16 release.

@jorenham
Copy link
Member Author

Mypy 1.16.0 was just released, which includes my fix:
https://mypy-lang.blogspot.com/2025/05/mypy-116-released.html

@jorenham jorenham unpinned this issue May 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant