Skip to content

🏷️ stub the remaining numpy._core.* modules #241

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

Merged
merged 9 commits into from
Mar 4, 2025

Conversation

jorenham
Copy link
Member

@jorenham jorenham commented Mar 4, 2025

This adds stubs for the following submodules in numpy._core:

the cversions module could not be stubbed, because doing so will crash stubtest, which then tries to import code_generators (absolute path), even though it isn't on the PYTHONPATH. So instead, it has been added to the permanent allowlist.

All other numpy._core modules (including the private ones) now have valid stubs.

@jorenham jorenham added this to the v2.2.x.0 milestone Mar 4, 2025
@jorenham jorenham added the port: to numpy NumType PR's that should be ported to NumPy label Mar 4, 2025
@jorenham jorenham merged commit d7f4fd1 into main Mar 4, 2025
4 checks passed
@jorenham jorenham deleted the missing-_core-modules branch March 4, 2025 11:05
jorenham added a commit to jorenham/numpy that referenced this pull request Mar 14, 2025
@jorenham jorenham removed the port: to numpy NumType PR's that should be ported to NumPy label Mar 14, 2025
jorenham added a commit to jorenham/numpy that referenced this pull request Mar 14, 2025
charris pushed a commit to charris/numpy that referenced this pull request Mar 15, 2025
charris added a commit to numpy/numpy that referenced this pull request Mar 15, 2025
* TYP: don't use literals in shape-types

Partial backport of numpy/numtype#122 and numpy/numtype#152

* TYP: annotate the missing ``ufunc.resolve_dtypes`` method

Ported from numpy/numtype#218

* TYP: stub ``numpy._core.overrides``

Ported from numpy/numtype#226

* TYP: stub ``numpy._utils``

Ported from numpy/numtype#225

* TYP: stub ``numpy._core._dtype[_ctypes]``

Ported from numpy/numtype#227

* TYP: stub the remaining ``numpy._core.*`` modules

Ported from numpy/numtype#241

* TYP: stub the missing submodules of ``numpy.linalg``

Ported from numpy/numtype#248

* TYP: stub ``numpy._pyinstaller``

Ported from numpy/numtype#264

* TYP: stub ``numpy.fft.helper`` (deprecated)

Ported from numpy/numtype#261

* TYP: annotate the missing deprecated ``row_stack`` function

Ported from numpy/numtype#223

---------

Co-authored-by: jorenham <jhammudoglu@gmail.com>
MaanasArora pushed a commit to MaanasArora/numpy that referenced this pull request Apr 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment