Skip to content

Commit b089be7

Browse files
committed
reword release, typing
1 parent 681df66 commit b089be7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-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-
The shrinker now uses the `typed choice sequence` (:issue:`3921`) to determine counterexample complexity. We expect this to mostly match the previous ordering, but it may result in reporting different counterexamples in some cases.
3+
The shrinker now uses the typed choice sequence (:issue:`3921`) when ordering failing examples. As a result, Hypothesis may now report a different minimal failing example for some tests. We expect most cases to remain unchanged.

hypothesis-python/src/hypothesis/internal/conjecture/shrinker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def sort_key(buffer: SortKeyT) -> tuple[int, SortKeyT]:
8080
return (len(buffer), buffer)
8181

8282

83-
def sort_key_ir(nodes: Sequence[IRNode]) -> tuple[int, tuple[int]]:
83+
def sort_key_ir(nodes: Sequence[IRNode]) -> tuple[int, tuple[int, ...]]:
8484
return (
8585
len(nodes),
8686
tuple(choice_to_index(node.value, node.kwargs) for node in nodes),

0 commit comments

Comments
 (0)