chore(deps): update dependency hypothesis to v6.155.7#1367
Open
renovate[bot] wants to merge 1 commit into
Open
chore(deps): update dependency hypothesis to v6.155.7#1367renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
3b99bfe to
2430634
Compare
2430634 to
252317c
Compare
252317c to
93facb4
Compare
93facb4 to
587ac6b
Compare
587ac6b to
c3816c4
Compare
c3816c4 to
7d19a95
Compare
7d19a95 to
bb7b048
Compare
bb7b048 to
d7dab4e
Compare
d7dab4e to
1756d78
Compare
1756d78 to
c097d0d
Compare
c097d0d to
70fbc04
Compare
70fbc04 to
8043894
Compare
8043894 to
2de8f9f
Compare
2de8f9f to
c9a88f3
Compare
c9a88f3 to
efff41f
Compare
1d6e488 to
b53807c
Compare
b53807c to
af0d7d0
Compare
af0d7d0 to
6b7efa2
Compare
6b7efa2 to
3344e03
Compare
3344e03 to
4a030e3
Compare
4a030e3 to
b6fec04
Compare
4517c81 to
65a4ced
Compare
65a4ced to
49be4e3
Compare
49be4e3 to
8b7b2f6
Compare
8b7b2f6 to
e8465b1
Compare
e8465b1 to
dc6908c
Compare
dc6908c to
2bc2d53
Compare
2bc2d53 to
2760cc8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
6.142.2→6.155.7Release Notes
HypothesisWorks/hypothesis (hypothesis)
v6.155.7: Hypothesis version 6.155.7Compare Source
This patch fixes a thread-safety bug where concurrent use of the same
strategy instance could error in rare cases. (issue #4475).
The canonical version of these notes (with links) is on readthedocs.
v6.155.6: Hypothesis version 6.155.6Compare Source
This patch replaces some internal "%"-style string formatting with
f-strings. There is no user-visible change.
The canonical version of these notes (with links) is on readthedocs.
v6.155.5: Hypothesis version 6.155.5Compare Source
"dates()" now raises "InvalidArgument" if a "datetime" is passed as
"min_value" or "max_value". Because "datetime" is a subclass of
"date", such bounds were previously accepted and then failed with a
confusing "TypeError" while generating examples.
The canonical version of these notes (with links) is on readthedocs.
v6.155.4: Hypothesis version 6.155.4Compare Source
This patch removes a stray "print()" which fired whenever a "dates()"
filter was rewritten.
The canonical version of these notes (with links) is on readthedocs.
v6.155.3: Hypothesis version 6.155.3Compare Source
When using an alternative backend (such as hypothesis-crosshair),
Hypothesis no longer emits a "test_case" observation for an iteration
that the backend aborts via "BackendCannotProceed" before the test
body runs. Previously such an iteration -- for example when the
crosshair backend has exhausted its search paths -- could surface as a
spurious, draw-less "passed" observation with an empty representation,
even though the engine already discards the iteration entirely.
The canonical version of these notes (with links) is on readthedocs.
v6.155.2: Hypothesis version 6.155.2Compare Source
This patch rewrites the internal date- and time-drawing helper to use
plain arithmetic instead of branching on the values it draws. The
generated distribution is unchanged, but "dates()", "datetimes()", and
"times()" are now much more efficient under symbolic-execution
backends such as crosshair-tool, which can now solve for a specific
date directly rather than enumerating candidates (issue #4759).
The canonical version of these notes (with links) is on readthedocs.
v6.155.1: Hypothesis version 6.155.1Compare Source
Shrinking large floats, strings, and bytestrings is now much faster in
some cases (issue #4006).
The canonical version of these notes (with links) is on readthedocs.
v6.155.0: Hypothesis version 6.155.0Compare Source
"from_dtype()" now supports the variable-width string dtype
"numpy.dtypes.StringDType", generating arbitrary strings via "text()"
(issue #4039).
Additionally, passing a dtype class such as "np.dtypes.StringDType"
where an instance like "np.dtypes.StringDType()" was expected now
raises a clear error, rather than the previous confusing message (or
silent coercion to the object dtype in "arrays()").
The canonical version of these notes (with links) is on readthedocs.
v6.154.2: Hypothesis version 6.154.2Compare Source
This patch improves the type annotations of "fixed_dictionaries()",
which now accepts a "Mapping" rather than requiring an invariant
"dict". Because the value type is covariant, type-checkers can now
infer the generated type even when the strategies are heterogeneous,
e.g. a "mapping" annotated as "dict[str, SearchStrategy[int] |
SearchStrategy[str]]" (issue #4665).
The "mapping" and "optional" arguments may now also have different key
and value types, which are unioned in the inferred result.
The canonical version of these notes (with links) is on readthedocs.
v6.154.1: Hypothesis version 6.154.1Compare Source
This patch fixes a bug where resolving recursive forward references in
"from_type()" (such as "A = list[Union["A", str]]", added in
v6.152.11) could recurse until it hit the interpreter's recursion
limit before falling back to a deferred strategy. Because this
depended on the ambient stack depth, it occasionally surfaced as a
spurious "RecursionError" or other flaky failure. We now break the
cycle eagerly by deferring, so resolution uses a small and constant
amount of stack regardless of how deeply nested the reference is.
The canonical version of these notes (with links) is on readthedocs.
v6.154.0: Hypothesis version 6.154.0Compare Source
"fixed_dictionaries()" now varies the iteration order of the dicts it
generates, rather than always placing the required keys first, to help
find bugs in code which is sensitive to key order (issue #3906). If
you need a stable order, we recommend using
"fixed_dictionaries(...).map(stable_sort_function)" or similar.
The canonical version of these notes (with links) is on readthedocs.
v6.153.6: Hypothesis version 6.153.6Compare Source
The "--hypothesis-show-statistics" report now accounts for the
"Phase.explain" phase separately, rather than including its runtime
and test cases in the "Phase.shrink" phase (issue #4179).
The canonical version of these notes (with links) is on readthedocs.
v6.153.5: Hypothesis version 6.153.5Compare Source
This patch dramatically improves the performance of "from_type()" on
hierarchies of abstract classes whose subclasses refer back to the
base class (directly, or via a sibling subclass) in their annotations.
Resolution previously took time cubic in the number of subclasses; we
now resolve each type only once (issue #4729).
The canonical version of these notes (with links) is on readthedocs.
v6.153.4: Hypothesis version 6.153.4Compare Source
This patch fixes a bug where fuzz_one_input did not track the
"interesting_origin" of failures (issue #4420). As a result, it only
saved the single smallest failure to the database rather than the
smallest example of each distinct failure, and the
"interesting_origin" was missing from observability reports.
The canonical version of these notes (with links) is on readthedocs.
v6.153.3: Hypothesis version 6.153.3Compare Source
This patch fixes a bug where "decimals()" with the "places" argument
could generate values outside the "min_value" and "max_value" bounds,
when those bounds had more fractional digits than "places" (issue
#4651).
The canonical version of these notes (with links) is on readthedocs.
v6.153.2: Hypothesis version 6.153.2Compare Source
This patch improves the performance of stateful testing for state
machines with a large number of rules (issue #4465).
The canonical version of these notes (with links) is on readthedocs.
v6.153.1: Hypothesis version 6.153.1Compare Source
This patch fixes a bug where we emitted incorrect git patch files when
one file did not have a trailing newline (issue #4744).
The canonical version of these notes (with links) is on readthedocs.
v6.153.0: Hypothesis version 6.153.0Compare Source
"event()"'s "payload" is now typed as accepting "Any", matching its
runtime behavior of accepting any string-coercible object.
The canonical version of these notes (with links) is on readthedocs.
v6.152.12: Hypothesis version 6.152.12Compare Source
When Hypothesis detects that your data generation is flaky and raises
"FlakyStrategyDefinition", the error message now describes what
differed between the two runs - such as a different choice type,
different constraints, or drawing more or less data - as well as the
stack of strategies being drawn from, instead of only reporting that
generation was inconsistent. In stateful tests, it also reports the
steps leading up to the error.
Thanks to Ian Hunt-Isaak for this improvement!
The canonical version of these notes (with links) is on readthedocs.
v6.152.11: Hypothesis version 6.152.11Compare Source
This patch adds support for recursive forward references in
"from_type()", such as "A = list[Union["A", str]]" (issue #4542).
Previously, such recursive type aliases would raise a
"ResolutionFailed" error. Now, Hypothesis can automatically resolve
the forward reference by looking it up in the caller's namespace. This
also resolves forward references inside "type[...]", such as
"type["MyClass"]".
The canonical version of these notes (with links) is on readthedocs.
v6.152.10: Hypothesis version 6.152.10Compare Source
This patch renames our source code directory from "hypothesis-python"
to "hypothesis", and changes our canonical scheme for git tags from
"hypothesis-python-X.Y.Z" to "vX.Y.Z".
We have backfilled git tags in the new "vX.Y.Z" scheme. Any
distributions or build scripts which rely on the git tag scheme should
update to the new scheme.
The canonical version of these notes (with links) is on readthedocs.
v6.152.9Compare Source
v6.152.8Compare Source
v6.152.7Compare Source
v6.152.6Compare Source
v6.152.5Compare Source
v6.152.4Compare Source
v6.152.3Compare Source
v6.152.2Compare Source
v6.152.1Compare Source
v6.152.0Compare Source
v6.151.14Compare Source
v6.151.13Compare Source
v6.151.12Compare Source
v6.151.11Compare Source
v6.151.10Compare Source
v6.151.9Compare Source
v6.151.8Compare Source
v6.151.7Compare Source
v6.151.6Compare Source
v6.151.5Compare Source
v6.151.4Compare Source
v6.151.3Compare Source
v6.151.2Compare Source
v6.151.1Compare Source
v6.151.0Compare Source
v6.150.3Compare Source
v6.150.2Compare Source
v6.150.1Compare Source
v6.150.0Compare Source
v6.149.1Compare Source
v6.149.0Compare Source
v6.148.13Compare Source
v6.148.12Compare Source
v6.148.11Compare Source
v6.148.10Compare Source
v6.148.9Compare Source
v6.148.8Compare Source
v6.148.7Compare Source
v6.148.6Compare Source
v6.148.5Compare Source
v6.148.4Compare Source
v6.148.3Compare Source
v6.148.2Compare Source
v6.148.1Compare Source
v6.148.0Compare Source
v6.147.0Compare Source
v6.146.0Compare Source
v6.145.1Compare Source
v6.145.0Compare Source
v6.144.1Compare Source
v6.144.0Compare Source
v6.143.1Compare Source
v6.143.0Compare Source
v6.142.5Compare Source
v6.142.4Compare Source
v6.142.3Compare Source
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.