Skip to content

TYP: Backport typing fixes from main (3) #28534

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 6 commits into from
Mar 15, 2025

Conversation

Ported from numpy/numtype#228

---

the following methods were missing according to stubtest:

- `numpy.object_.__call__`
- `numpy.timedelta64.__class_getitem__`
Ported from numpy/numtype#233

---

This fixes the signatures of the following public `numpy` members:

- `average`
- `ma.average`
- `median`
- `corrcoef`
Ported from numpy/numtype#235

---

- move `ndenumerate` and `ndindex` definitions to `lib._index_tricks_impl`
- add deprecated `ndenumerate.ndincr` property
- removed non-existent `ndenumerate.iter` property
- remove incorrect "pass" and "reveal" type-tests for `ndenumerate.iter`
- fix incorrect `ndenumerate` constructor fallback return type
- fix `AxisConcatenator.makemat` signature
Ported from numpy/numtype#245

---

This fixes incorrect parameter names of `tril` and `triu`, and resolves a typing error in the signatures of `eye` and `tri`.
@charris charris added 08 - Backport Used to tag backport PRs 41 - Static typing labels Mar 15, 2025
@charris charris added this to the 2.2.4 release milestone Mar 15, 2025
@charris charris changed the title TYP: Backport typing fixes from main (2) TYP: Backport typing fixes from main (3) Mar 15, 2025
@charris charris merged commit 7974ff9 into numpy:maintenance/2.2.x Mar 15, 2025
70 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
08 - Backport Used to tag backport PRs 41 - Static typing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants