Skip to content

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