Skip to content

Commit 841833f

Browse files
committed
address reviews
1 parent 24f9f0a commit 841833f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

hypothesis-python/RELEASE.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
RELEASE_TYPE: patch
22

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.

hypothesis-python/src/hypothesis/strategies/_internal/strategies.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,8 @@ def one_of(
834834
f"Did you mean st.sampled_from({list(args)!r})? st.one_of() is used "
835835
"to combine strategies, but all of the arguments were of other types."
836836
)
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.
838839
args = cast(Sequence[SearchStrategy], args)
839840
return OneOfStrategy(args)
840841

0 commit comments

Comments
 (0)