Skip to content

object dtypes in custom check strategies. #817

Answered by bernardpazio
bernardpazio asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for your reply.

Yeah already using the geopandas types.

Ok that makes more sense, as you are essentially just trying to map dataframe dtypes straight to the data synthesises that hypothesis has already implemented. So really the root of the issue is that this should be by passed for custom strategies as we do not need to worry about what hypothesis is doing for us as that is on the user themselves.

@bphillips-exos approach does by pass that logic so would work for me, and (potentially) separates the check from the strategy which is not needed in some cases. I think I will adopt that approach. This is something i need for a project I'm currently working on, so i could maybe just pic…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@cosmicBboy
Comment options

Answer selected by bernardpazio
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants