GeezerVison is showing github.com — TYP/DOC: release notes for the main ``numpy`` namespace shape-typing improvements by jorenham · Pull Request #32835 · numpy/numpy
Conversation
jorenham
commented
Sep 30, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Relevant PRs (93):
- TYP: Improved
np.array shape-typing #32081
- TYP:
{zeros,ones,empty,full}_like improved shape-typing #32196
- TYP:
copy improved shape-typing #32202
- TYP:
clip improved shape-typing and dtype propagation #32204
- TYP:
isclose shape-typing fix for 2d array-likes #32205
- TYP:
concatenate shape-typing #32207
- TYP:
np.unique shape-typing #32215
- TYP:
hstack and vstack shape-typing #32238
- TYP:
argsort improved shape-typing #32240
- TYP:
np.[a]round improved shape-typing #32241
- TYP:
np.array improved shape-typing #32246
- TYP:
broadcast_to shape-typing #32247
- TYP:
stack shape-typing #32248
- TYP:
tile shape-typing #32249
- TYP:
searchsorted shape-typing #32250
- TYP:
isin shape-typing #32262
- TYP:
np.asarray improved shape-typing #32263
- TYP:
np.column_stack shape-typing #32267
- TYP:
np.sort improved shape-typing #32268
- TYP:
transpose and matrix_transpose improved shape-typing #32271
- TYP:
mean, sum and prod improved shape-typing #32330
- TYP:
any and all improved shape-typing #32333
- TYP:
argmin and argmax improved shape-typing #32343
- TYP:
amin and amax improved shape-typing #32344
- TYP:
var and std improved shape-typing #32345
- TYP:
expand_dims improved shape-typing #32362
- TYP:
tensordot shape-typing #32420
- TYP:
where improved shape-typing #32437
- TYP:
take shape-typing #32543
- TYP:
trace shape-typing #32546
- TYP:
median shape-typing #32556
- TYP:
percentile and quantile shape-typing #32560
- TYP:
as{contiguous, fortran}array shape-typing #32569
- TYP:
asanyarray shape-typing #32571
- TYP:
squeeze shape-typing when axis is given #32572
- TYP:
count_nonzero shape-typing #32574
- TYP:
pad improved shape-typing and mode-dependend kwargs #32576
- TYP:
loadtxt shape-typing #32578
- TYP:
real and imag improved shape-typing #32579
- TYP:
swapaxes improved shape-typing #32581
- TYP:
nan_to_num improved shape-typing #32586
- TYP:
einsum shape-typing #32588
- TYP:
average improved shape-typing #32608
- TYP:
atleast_{1,2,3}d improved shape-typing #32610
- TYP:
unravel_index shape-typing #32611
- TYP:
broadcast_arrays improved shape-typing #32612
- TYP:
tri{l,u} improved shape-typing #32614
- TYP:
cross shape-typing #32615
- TYP:
polyfit shape-typing #32616
- TYP:
lexsort shape-typing #32617
- TYP:
polyval shape-typing and more precise dtypes #32619
- TYP:
is{pos,neg}inf improved shape-typing #32621
- TYP:
ptp improved shape-typing #32624
- TYP:
dstack shape-typing #32625
- TYP:
kron improved shape-typing #32626
- TYP:
genfromtxt shape-typing and improved dtypes #32627
- TYP:
diagonal improved shape-typing #32628
- TYP:
ravel_multi_index improved shape-typing #32629
- TYP:
choose shape-typing #32630
- TYP:
compress shape-typing #32631
- TYP:
take_along_axis shape-typing #32632
- TYP:
require improved shape-typing #32633
- TYP:
partition improved shape-typing and dtypes #32635
- TYP:
is{real,complex} improved shape-typing #32637
- TYP:
broadcast_shapes shape-typing #32638
- TYP:
asarray_chkfinite improved shape-typing #32639
- TYP:
datetime_as_string improved shape-typing #32647
- TYP:
trim_zeros shape-typing #32652
- TYP:
from_dlpack shape-typing #32653
- TYP:
polydiv shape-typing and improved dtypes #32654
- TYP:
polymul shape-typing and improved dtypes #32655
- TYP:
sort_complex improved shape-typing #32656
- TYP:
real_if_close improved shape-typing #32657
- TYP:
histogramdd shape-typing #32674
- TYP:
roots shape-typing and improved dtypes #32675
- TYP:
apply_along_axis shape-typing and improved dtypes #32676
- TYP:
block shape-typing and improved dtypes #32677
- TYP:
poly shape-typing and improved dtypes #32678
- TYP:
poly{der,int} shape-typing and improved dtypes #32681
- TYP:
busday functions shape-typing #32683
- TYP:
poly{add,sub} shape-typing and improved dtypes #32684
- TYP:
trapezoid shape-typing #32685
- TYP:
fromfunction shape-typing #32686
- TYP:
unique_{all,inverse} improved shape-typing #32727
- TYP:
unstack shape-typing #32728
- TYP:
apply_over_axes shape-typing #32729
- TYP:
minmax shape-typing and improved dtypes #32730
- TYP:
top_k shape-typing and improved dtypes #32731
- TYP:
r_/c_ shape-typing and improved dtypes #32734
- TYP:
{m,o}grid shape-typing and improved dtypes #32739
- TYP:
vectorize shape-typing #32743
- TYP:
poly1d shape-typing #32750
- TYP:
frompyfunc shape-typing and more accurate dtypes #32753
I also took the liberty of adding a highlight for shape-typing in general. It says "almost all" because numpy.ma isn't (fully) shape-typed, and I'm not planning on doing that either (not right now, at least).
AI wrote some, I wrote some.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
jorenham reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.