hypothesis
hypothesis copied to clipboard
Adding type check and provide numpy strategy for NDArray
An attempt to close #3150
This PR
- [x] proved support in
from_typefor NDArrays in numpy.typing - [ ] provide a typing define of Shape to use when registering for numpy strategies (not sure is that what you mean @Zac-HD )
Feel free to let me know where I should put the tests, I put them in a separate file for my sanity but happy to move it.
Thanks for the review. Will see if I got a chance to fix it today at the airport (this is an airport PR that I created at the airport)
Updated the PR, will keep fixing it
Cool! Will look at it when I have time next, thanks!
Hi @Cheukting ! Thanks so much for your hard work on this PR. It turns out that there is a lot of hairy stuff going on here, so I opened #3491 to push forward with some of this work. Please feel free to check out some of my commits to see what changes I made from your work.
I hope to circle back to that PR in the not-so-distant future and will be happy to explain my thought process on it.