-
-
Notifications
You must be signed in to change notification settings - Fork 6
🏷️ 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
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jorenham
added a commit
to jorenham/numpy
that referenced
this pull request
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds stubs for the following submodules in
numpy._core
:printoptions
closes Stubs missing fornumpy._core.printoptions
#47_string_helpers
closes Stubs missing fornumpy._core._string_helpers
#50_methods
closes Stubs missing fornumpy._core._methods
#51_machar
closes Stubs missing fornumpy._core._machar
#52_exceptions
closes Stubs missing fornumpy._core._exceptions
#53_add_newdocs_scalars
closes Stubs missing fornumpy._core._add_newdocs_scalars
#56_add_newdocs
closes Stubs missing fornumpy._core._add_newdocs
#57_simd
closes Stubs missing fornumpy._core._simd
(module only) #111the
cversions
module could not be stubbed, because doing so will crash stubtest, which then tries to importcode_generators
(absolute path), even though it isn't on thePYTHONPATH
. So instead, it has been added to the permanent allowlist.All other
numpy._core
modules (including the private ones) now have valid stubs.