Skip to content

ENH: testing: special case 0D-arrays for check_shape=False#729

Merged
lucascolley merged 2 commits into
data-apis:mainfrom
prady0t:check-shape-condition-fix
May 13, 2026
Merged

ENH: testing: special case 0D-arrays for check_shape=False#729
lucascolley merged 2 commits into
data-apis:mainfrom
prady0t:check-shape-condition-fix

Conversation

@prady0t
Copy link
Copy Markdown
Contributor

@prady0t prady0t commented May 13, 2026

Discussed in #724

Fixing check_shape's else condition to take into account 0d arrays. They are special case in numpy. See

Signed-off-by: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com>
@prady0t prady0t changed the title Fixing check_shape's else condition ENH: Fixing check_shape's else condition May 13, 2026
Comment thread src/array_api_extra/_lib/_testing.py Outdated
@lucascolley lucascolley changed the title ENH: Fixing check_shape's else condition ENH: testing: special case 0D-arrays for check_shape=False May 13, 2026
@lucascolley lucascolley added this to the 0.10.2 milestone May 13, 2026
@lucascolley lucascolley added the enhancement New feature or request label May 13, 2026
@lucascolley lucascolley enabled auto-merge (squash) May 13, 2026 09:56
@lucascolley lucascolley merged commit 482f746 into data-apis:main May 13, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request xpx.testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants