Releases: HypothesisWorks/hypothesis
Hypothesis for Python - version 6.145.0
Hypothesis previously required attrs as a dependency. This release
removes that dependency, so that the only required dependency of
Hypothesis is sortedcontainers.
All attrs-specific features of Hypothesis, such as using "from_type()"
with attrs classes, will continue to behave as before.
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.144.1
Tweak how Hypothesis hides internal tracebacks to fix an error under
rare conditions (issue #3822).
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.144.0
This release adds support for "Fraction" objects as "min_value" and
"max_value" bounds in "decimals()", if they can be exactly represented
as decimals in the target precision (issue #4466).
Bounding "decimals()" with other values that cannot be exactly
represented is now deprecated; previously the bounds could be off by
one.
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.143.1
"from_type()" now correctly handles annotated-types annotations on
"typing.TypedDict" fields which are also marked as being "ReadOnly",
"Required", or "NotRequired" (issue #4474).
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.143.0
The extras for NumPy and pandas now support automatically inferring a
strategy for "dtype="O"". Previously, Hypothesis required an explicit
elements strategy to be passed, for example "nps.arrays("O",
shape=(1,), elements=st.just(object()))". Now, Hypothesis
automatically infers "elements=st.from_type(object)".
Thanks to Shaun Read for identifying and fixing this!
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.142.5
This patch fixes "binary_operation()" to include imports for
"hypothesis.extra.numpy" strategies such as "arrays()",
"scalar_dtypes()", and "array_shapes()" when ghostwriting tests for
functions with numpy array parameters (issue #4576).
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.142.4
Improve the accuracy of test timing reports, by tracking the start
time of each test case closer to when the test is executed.
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.142.3
Fix a recursion error when observability is enabled and a test
generates an object with a recursive reference, like "a = [];
a.append(a)".
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.142.2
Remove a case where Hypothesis would interact with the global
"random.Random" instance if Hypothesis internals were used directly.
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.142.1
Simplify some internal typing logic after dropping Python 3.9.
The canonical version of these notes (with links) is on readthedocs.