Skip to content

TYP: atleast_{1,2,3}d improved shape-typing - #32610

Merged
charris merged 4 commits into
numpy:mainfrom
jorenham:typing/atleast_1d/shape-typing
Sep 14, 2026
Merged

charris merged 4 commits into
numpy:mainfrom
jorenham:typing/atleast_1d/shape-typing

Conversation

@jorenham

@jorenham jorenham commented Sep 14, 2026 •

Copy link
Copy Markdown
Member

The atleast_1d, atleast_2d, and atleast_3d functions now also return exact shape-types when the input is a (nested) sequence of python scalars. The returned tuple type of the variadic fallback overloads is now also more precise.


Pair programmed with AI.

@jorenham jorenham added this to the 2.6.0 Release milestone Sep 14, 2026
@github-actions

This comment has been minimized.

@jorenham

This comment was marked as resolved.

@charris
charris merged commit c3bbf26 into numpy:main Sep 14, 2026
15 checks passed
@charris

charris commented Sep 14, 2026

Copy link
Copy Markdown
Member

Thanks Joren.

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