Improve error message when st.builds() is missing required uninferrable arguments
#3225
Labels
legibility
make errors helpful and Hypothesis grokable
Right now
hypothesisignores@no_type_checkdecorator applied to functions and types.For example:
This passes as expected. But, consider this:
This example fails with unclear error:
I think it happens because
get_type_hintsreturn{}for types likeNotTypes.That's why we can't create a correct amount of arguments for
__init__.Probably, we can at least improve the error message to soething like:
What do you think?
Context: https://bugs.python.org/issue46571
The text was updated successfully, but these errors were encountered: