Skip to content

Commit

Permalink
Fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac-HD committed Jul 26, 2021
1 parent 0e29826 commit 3a386e2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1711,7 +1711,7 @@ def register_type_strategy(
from hypothesis.strategies._internal import types

if not types.is_a_type(custom_type):
raise InvalidArgument("custom_type=%r must be a type")
raise InvalidArgument(f"custom_type={custom_type!r} must be a type")
elif not (isinstance(strategy, SearchStrategy) or callable(strategy)):
raise InvalidArgument(
"strategy=%r must be a SearchStrategy, or a function that takes "
Expand Down

0 comments on commit 3a386e2

Please sign in to comment.