Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jorenham
Copy link
Member

Because the To*_{1,2,3}d array-like type-aliases are meant to be used in input positions, and shape-typing support isn't complete, these don't enfore shape-typing constraints on its (potential) ndarray-like input.

But sometimes such "strict" shape-typing is actually needed, e.g. to avoid overlapping overloads. The new To*_{1,2,3}ds aliases (the s suffix stands for "strict") make this possible.

@jorenham jorenham added this to the v2.2.x.0 milestone Feb 18, 2025
@jorenham jorenham added _numtype and removed numtype labels Feb 18, 2025
@jorenham jorenham merged commit 59744e1 into main Feb 18, 2025
1 check passed
@jorenham jorenham deleted the _numtype-strict branch February 18, 2025 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants