Skip to content

TYP: lib.stride_tricks shape-typing - #32736

Merged
charris merged 3 commits into
numpy:mainfrom
jorenham:typing/lib.stride_tricks/shape-typing
Sep 22, 2026
Merged

charris merged 3 commits into
numpy:mainfrom
jorenham:typing/lib.stride_tricks/shape-typing

Conversation

@jorenham

Copy link
Copy Markdown
Member

This adds shape-typing support to as_strided and sliding_window_view from numpy.lib.stride_tricks (which are used surprisingly often, about as much as cov and frompyfunc, respectively).


Pair programmed with AI.

@jorenham

This comment was marked as resolved.

@jorenham
jorenham force-pushed the typing/lib.stride_tricks/shape-typing branch from 80f5c02 to 5587b34 Compare September 21, 2026 16:16
@charris
charris merged commit 7de4b04 into numpy:main Sep 22, 2026
15 checks passed
@charris

charris commented Sep 22, 2026

Copy link
Copy Markdown
Member

Thanks Joren.

@jorenham
jorenham deleted the typing/lib.stride_tricks/shape-typing branch September 22, 2026 18:10
Riaz1729 pushed a commit to Riaz1729/numpy that referenced this pull request Sep 23, 2026
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.

2 participants