We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 055f9e2 commit be0fc33Copy full SHA for be0fc33
hypothesis-python/src/hypothesis/strategies/_internal/core.py
@@ -891,7 +891,8 @@ def builds(
891
if to_infer - set(hints):
892
badargs = ", ".join(sorted(to_infer - set(hints)))
893
raise InvalidArgument(
894
- f"passed ... for {badargs}, but there is no type annotation"
+ f"passed ... for {badargs}, but we cannot infer a strategy "
895
+ "because these arguments have no type annotation"
896
)
897
infer_for = {k: v for k, v in hints.items() if k in (required | to_infer)}
898
if infer_for:
0 commit comments