FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

TYP: minor fixes related to ``errstate`` by jorenham · Pull Request #29914 · numpy/numpy · GitHub

/ numpy Public

TYP: minor fixes related to errstate - #29914

Merged
seberg merged 1 commit into
numpy:mainfrom
jorenham:typing/errstate-fixes
Oct 10, 2025
Merged

seberg merged 1 commit into
numpy:mainfrom
jorenham:typing/errstate-fixes

Conversation

jorenham commented Oct 9, 2025

Copy link
Copy Markdown
Member
  • move the np.errstate stub from __init__.pyi to _core/_ufunc_config.pyi to better match the runtime situation.
  • stub the _unspecified class and _Unspecified sentinel in _core._ufunc_config
  • correct mismatching parameter type and parameter default of the call kwarg in errstate.__init__
  • add missing __all__ in _core/_ufunc_config.pyi

jorenham added 09 - Backport-Candidate PRs tagged should be backported 41 - Static typing labels Oct 9, 2025

seberg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Looks good, thanks, Joren.

self,
/,
*,
call: _ErrCall | _unspecified = ..., # = _Unspecified

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Weird, I guess I didn't want to clean that up last time around, but we should just use np._NoValue it seems to me...
Anyway, doesn't matter for this.

(I don't really think this should be backported -- I can say that once every few months, right? :).)

seberg merged commit a3f1ad9 into numpy:main Oct 10, 2025
80 checks passed
jorenham deleted the typing/errstate-fixes branch October 10, 2025 11:03
charris pushed a commit to charris/numpy that referenced this pull request Oct 10, 2025
charris pushed a commit to charris/numpy that referenced this pull request Oct 10, 2025
charris added a commit that referenced this pull request Oct 10, 2025
TYP: minor fixes related to ``errstate`` (#29914)
charris removed the 09 - Backport-Candidate PRs tagged should be backported label Oct 10, 2025
MaanasArora pushed a commit to MaanasArora/numpy that referenced this pull request Oct 13, 2025
IndifferentArea pushed a commit to IndifferentArea/numpy that referenced this pull request Dec 7, 2025
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL