Skip to content

Commit

Permalink
reword release, typing
Browse files Browse the repository at this point in the history
  • Loading branch information
tybug committed Dec 27, 2024
1 parent 681df66 commit b089be7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hypothesis-python/RELEASE.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
RELEASE_TYPE: patch

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.
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.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def sort_key(buffer: SortKeyT) -> tuple[int, SortKeyT]:
return (len(buffer), buffer)


def sort_key_ir(nodes: Sequence[IRNode]) -> tuple[int, tuple[int]]:
def sort_key_ir(nodes: Sequence[IRNode]) -> tuple[int, tuple[int, ...]]:
return (
len(nodes),
tuple(choice_to_index(node.value, node.kwargs) for node in nodes),
Expand Down

0 comments on commit b089be7

Please sign in to comment.