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 `_core._multiarray_umath`, and many related fixes & improvements by jorenham Β· Pull Request #122 Β· numpy/numtype

Conversation

@jorenham

@jorenham jorenham commented Feb 11, 2025

Copy link
Copy Markdown
Member
  • moved all members in _core.multiarray to _core._multiarray_umath
  • moved broadcast, busdaycalendar, flatiter, and from_dlpack, from __init__ to _core._multiarray_umath
  • add the missing implicit re-exports _core.multiarray, of which there were more than 100
  • add the missing implicit re-exports of the private numpy subpackages in __init__
  • improved many (if not most) of the classes and functions that were moved into _core._multiarray_umath, and corrected several minor bugs
  • fixed all typing errors in _core.multiarray
  • removed some incorrect rejection tests (valid at runtime)
  • removed some incorrect acceptance tests (raises at runtime)
  • simplified the ufunc definitions in __init__ (by setting the ufunc.identity type param default to None)
  • replaced some long TypeAlias with TypeAliasType, reducing the type-checker error message spaghetti

closes #110
towards ##98
towards #121

Sorry, something went wrong.

Uh oh!

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

All reactions
@jorenham
βœ¨πŸ› stub _core._multiarray_umath & improve related signatures
27378f4
@jorenham jorenham added stubs: Incomplete stubs: Enhancement stubs: Refactor labels Feb 11, 2025
@jorenham jorenham added this to the v2.2.x.0 milestone Feb 11, 2025
@jorenham jorenham added the numpy._core.* label Feb 11, 2025
@jorenham
jorenham merged commit 1150a03 into main Feb 11, 2025
@jorenham
jorenham deleted the numpy._core.multiarray branch February 11, 2025 22:20
@jorenham jorenham mentioned this pull request Feb 11, 2025
Typing errors in numpy._core #98
Closed
10 tasks done
@jorenham jorenham added the port: to numpy NumType PR's that should be ported to NumPy label Feb 11, 2025
@jorenham

This comment was marked as outdated.

Sign in to view
jorenham added a commit to jorenham/numpy that referenced this pull request Mar 14, 2025
@jorenham
MAINT: fix ruff errors in _core.multiarray
2b61c38
Partial backport of numpy/numtype#122
jorenham added a commit to jorenham/numpy that referenced this pull request Mar 14, 2025
@jorenham
TYP: fix missing implicit re-exports and inconsistent naming in `_cor…
bcfcd29
…e.multiarray`

Partial backport of numpy/numtype#122
jorenham added a commit to jorenham/numpy that referenced this pull request Mar 14, 2025
@jorenham
TYP: fix typing errors in _core.multiarray and some in _core.numeric
6e2554f
Partial backport of numpy/numtype#122
@jorenham

jorenham commented Mar 14, 2025

Copy link
Copy Markdown
Member Author

I tried backporting it in https://github.com/jorenham/numpy/tree/numtype/122/probably-not-a-good-idea-after-all, but now that I see the huge diff, I don't think that backporting this is a good idea anymore

All reactions

Sorry, something went wrong.

Uh oh!

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

@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
@jorenham
TYP: don't use literals in shape-types
9a57866
Partial backport of numpy/numtype#122 and numpy/numtype#152
@jorenham jorenham mentioned this pull request Mar 14, 2025
TYP: don't use literals in shape-types numpy/numpy#28497
Merged
jorenham added a commit to jorenham/numpy that referenced this pull request Mar 14, 2025
@jorenham
TYP: don't use literals in shape-types
8e23ae4
Partial backport of numpy/numtype#122 and numpy/numtype#152
charris pushed a commit to charris/numpy that referenced this pull request Mar 15, 2025
@jorenham @charris
TYP: don't use literals in shape-types
54d978f
Partial backport of numpy/numtype#122 and numpy/numtype#152
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: don't use literals in shape-types
c89c332
Partial backport of numpy/numtype#122 and numpy/numtype#152
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: Enhancement stubs: Incomplete stubs: Refactor

Projects

None yet

Milestone

v2.4.x.0a1

Development

Successfully merging this pull request may close these issues.

Stubs missing for numpy._core._multiarray_umath

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.