Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up extra.array_api.ArrayStrategy #3109

Merged
merged 5 commits into from
Sep 29, 2021

Conversation

honno
Copy link
Member

@honno honno commented Sep 29, 2021

Just the clean-up part of #3105 as well as the relevant review commits. I included a test for 0d arrays (already passes).

I imagine we want to just not allow multi-dimensional array elements? If that's the case, I'll note writing checks that rely on Array API behaviour (i.e. not just numpy.array_api) is pretty tricky (impossible?) to do efficiently... but relying on current behaviour leads to one or two obscure logical paths where we aren't raising InvalidArgument. Basically, I will need to think about it more, and it's something tricky enough that I don't think will be appropriate for this PR.

Copy link
Member

@Zac-HD Zac-HD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@Zac-HD Zac-HD merged commit 0b4dc63 into HypothesisWorks:master Sep 29, 2021
@honno honno deleted the clean-arrays branch September 29, 2021 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants