File tree 2 files changed +3
-2
lines changed
src/hypothesis/strategies/_internal 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
RELEASE_TYPE: patch
2
2
3
- Fixes a recently-introduced bug where we might have generated ``-0.0 `` for ``st.floats(min_value=0.0) ``, which is unsound.
3
+ Fixes a bug since around :ref: ` version 6.124.4 < v6.124.4 >` where we might have generated ``-0.0 `` for ``st.floats(min_value=0.0) ``, which is unsound.
Original file line number Diff line number Diff line change @@ -834,7 +834,8 @@ def one_of(
834
834
f"Did you mean st.sampled_from({ list (args )!r} )? st.one_of() is used "
835
835
"to combine strategies, but all of the arguments were of other types."
836
836
)
837
- # we've handled the case where args is a one-element tuple cont
837
+ # we've handled the case where args is a one-element sequence [(s1, s2, ...)]
838
+ # above, so we can assume it's an actual sequence of strategies.
838
839
args = cast (Sequence [SearchStrategy ], args )
839
840
return OneOfStrategy (args )
840
841
You can’t perform that action at this time.
0 commit comments