GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com โ€” ๐Ÿท๏ธ stub the remaining `numpy._core.*` modules by jorenham ยท Pull Request #241 ยท numpy/numtype

Conversation

@jorenham

@jorenham jorenham commented Mar 4, 2025

Copy link
Copy Markdown
Member

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

  • printoptions closes Stubs missing for numpy._core.printoptions #47
  • _string_helpers closes Stubs missing for numpy._core._string_helpers #50
  • _methods closes Stubs missing for numpy._core._methods #51
  • _machar closes Stubs missing for numpy._core._machar #52
  • _exceptions closes Stubs missing for numpy._core._exceptions #53
  • _add_newdocs_scalars closes Stubs missing for numpy._core._add_newdocs_scalars #56
  • _add_newdocs closes Stubs missing for numpy._core._add_newdocs #57
  • _simd closes Stubs missing for numpy._core._simd (module only) #111

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
jorenham added 9 commits March 4, 2025 11:34
@jorenham
๐Ÿท๏ธ stub numpy._core._add_newdocs_scalars
4142f00
@jorenham
๐Ÿท๏ธ stub numpy._core._add_newdocs
87adcda
@jorenham
๐Ÿท๏ธ stub numpy._core._exceptions
d6e1961
@jorenham
๐Ÿท๏ธ stub numpy._core._machar
2d54baf
@jorenham
๐Ÿท๏ธ stub numpy._core.printoptions
8c6e5bf
@jorenham
๐Ÿ™ˆ ignore missing numpy._core.cversions module stubs
f2cd3e7
@jorenham
๐Ÿท๏ธ stub numpy._core._string_helpers
5881cb8
@jorenham
๐Ÿท๏ธ stub numpy._core._simd (the module, not the package)
881d574
@jorenham
๐Ÿท๏ธ stub numpy._core._methods
bb92875
@jorenham jorenham added stubs: Incomplete numpy._core.* labels Mar 4, 2025
@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
@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
TYP: stub the remaining numpy._core.* modules
7d394f5
Ported from numpy/numtype#241
@jorenham jorenham removed the port: to numpy NumType PR's that should be ported to NumPy label Mar 14, 2025
@jorenham jorenham mentioned this pull request Mar 14, 2025
TYP: stub the remaining numpy._core.* modules numpy/numpy#28517
Merged
jorenham added a commit to jorenham/numpy that referenced this pull request Mar 14, 2025
@jorenham
TYP: stub the remaining numpy._core.* modules
95e8c9e
Ported from numpy/numtype#241
charris pushed a commit to charris/numpy that referenced this pull request Mar 15, 2025
@jorenham @charris
TYP: stub the remaining numpy._core.* modules
2d47637
Ported from numpy/numtype#241
charris added a commit to numpy/numpy that referenced this pull request Mar 15, 2025
@charris @jorenham
TYP: Backport typing fixes from main (2) (#28533)
c694399
* 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 <[email protected]>
MaanasArora pushed a commit to MaanasArora/numpy that referenced this pull request Apr 11, 2025
@jorenham @MaanasArora
TYP: stub the remaining numpy._core.* modules
385f2d4
Ported from numpy/numtype#241
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

stubs: Incomplete

Projects

None yet

Milestone

v2.4.x.0a1

Development

Successfully merging this pull request may close these issues.

Stubs missing for numpy._core._exceptions Stubs missing for numpy._core._machar Stubs missing for numpy._core._methods Stubs missing for numpy._core._string_helpers Stubs missing for numpy._core.printoptions
Stubs missing for numpy._core._add_newdocs_scalars Stubs missing for numpy._core._add_newdocs Stubs missing for numpy._core._simd (module only)

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@jorenham
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.
You are visitor 01402775 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.