Skip to content

TYP: poly shape-typing and improved dtypes - #32678

Merged
charris merged 1 commit into
numpy:mainfrom
jorenham:typing/poly/shape-typing
Sep 21, 2026
Merged

charris merged 1 commit into
numpy:mainfrom
jorenham:typing/poly/shape-typing

Conversation

@jorenham

@jorenham jorenham commented Sep 17, 2026 •

Copy link
Copy Markdown
Member

The output array type of np.poly is now always 1d and its dtype depends on the input.

Note that for complex input the return type can be either real or complex, e.g. np.poly([p, np.conj(p)]) will be real.


Pair programmed with Ai

@jorenham jorenham added this to the 2.6.0 Release milestone Sep 17, 2026
@charris
charris merged commit 7188e66 into numpy:main Sep 21, 2026
16 checks passed
@charris

charris commented Sep 21, 2026

Copy link
Copy Markdown
Member

Thanks Joren.

@jorenham
jorenham deleted the typing/poly/shape-typing branch September 21, 2026 15:48
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