🌐 AI搜索 & 代理 主页
Skip to content

Conversation

@jorenham
Copy link
Member

@jorenham jorenham commented Oct 9, 2025

  • 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 jorenham added 09 - Backport-Candidate PRs tagged should be backported 41 - Static typing labels Oct 9, 2025
Copy link
Member

@seberg seberg left a comment

Choose a reason for hiding this comment

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

Looks good, thanks, Joren.

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

Choose a reason for hiding this comment

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

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 seberg merged commit a3f1ad9 into numpy:main Oct 10, 2025
80 checks passed
@jorenham 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 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
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