Path to this page:
Subject: CVS commit: pkgsrc/devel/py-hypothesis
From: Adam Ciarcinski
Date: 2021-09-12 11:53:54
Message id: 20210912095354.2648CFA97@cvs.NetBSD.org
Log Message:
py-hypothesis: updated to 6.21.0
6.21.0 - 2021-09-11
This release introduces strategies for array/tensor libraries adopting the Array \
API standard. They are available in the hypothesis.extra.array_api extra, and \
work much like the existing strategies for NumPy.
6.20.1 - 2021-09-10
This patch fixes issue 961, where calling given() inline on a bound method would \
fail to handle the self argument correctly.
6.20.0 - 2021-09-09
This release allows slices() to generate step=None, and fixes an off-by-one \
error where the start index could be equal to size. This works fine for all \
Python sequences and Numpy arrays, but is undefined behaviour in the Array API \
standard.
6.19.0 - 2021-09-08
This release makes stateful testing more likely to tell you if you do something \
unexpected and unsupported:
The return_value health check now applies to rule() and initialize() rules, if \
they don’t have target bundles, as well as invariant().
Using a consumes() bundle as a target is deprecated, and will be an error in a \
future version.
If existing code triggers these new checks, check for related bugs and \
misunderstandings - these patterns never had any effect.
6.18.0 - 2021-09-06
This release teaches from_type() a neat trick: when resolving an \
typing.Annotated type, if one of the annotations is a strategy object we use \
that as the inferred strategy. For example:
PositiveInt = Annotated[int, st.integers(min_value=1)]
If there are multiple strategies, we use the last outer-most annotation. See \
issue 2978 and pull request 3082 for discussion.
Requires Python 3.9 or later for get_type_hints(..., include_extras=False).
6.17.4 - 2021-08-31
This patch makes unique arrays() much more efficient, especially when there are \
only a few valid elements - such as for eight-bit integers.
6.17.3 - 2021-08-30
This patch fixes the repr of array_shapes().
6.17.2 - 2021-08-30
This patch wraps some internal helper code in our proxies decorator to prevent \
mutations of method docstrings carrying over to other instances of the \
respective methods.
6.17.1 - 2021-08-29
This patch moves some internal helper code in preparation for issue 3065. There \
is no user-visible change, unless you depended on undocumented internals.
6.17.0 - 2021-08-27
This release adds type annotations to the stateful testing API.
Thanks to Ruben Opdebeeck for this contribution!
6.16.0 - 2021-08-27
This release adds the DrawFn type as a reusable type hint for the draw argument \
of @composite functions.
Thanks to Ruben Opdebeeck for this contribution!
6.15.0 - 2021-08-22
This release emits a more useful error message when @given() is applied to a \
coroutine function, i.e. one defined using async def.
This was previously only handled by the generic return_value health check, which \
doesn’t direct you to use either a custom executor or a library such as \
pytest-trio or pytest-asyncio to handle it for you.
6.14.9 - 2021-08-20
This patch fixes a regression in Hypothesis 6.14.8, where from_type() failed to \
resolve types which inherit from multiple parametrised generic types, affecting \
the returns package.
6.14.8 - 2021-08-16
This patch ensures that registering a strategy for a subclass of a a \
parametrised generic type such as class Lines(Sequence[str]): will not \
“leak” into unrelated strategies such as st.from_type(Sequence[int]). \
Unfortunately this fix requires PEP 560, meaning Python 3.7 or later.
6.14.7 - 2021-08-14
This patch fixes issue 3050, where attrs classes could cause an internal error \
in the ghostwriter.
6.14.6 - 2021-08-07
This patch improves the error message for issue 3016, where PEP 585 builtin \
generics with self-referential forward-reference strings cannot be resolved to a \
strategy by from_type().
6.14.5 - 2021-07-27
This patch fixes hypothesis.strategies._internal.types.is_a_new_type. It was \
failing on Python 3.10.0b4, where NewType is a function.
6.14.4 - 2021-07-26
This patch fixes from_type() and register_type_strategy() for typing.NewType on \
Python 3.10, which changed the underlying implementation (see bpo-44353 for \
details).
6.14.3 - 2021-07-18
This patch updates our autoformatting tools, improving our code style without \
any API changes.
6.14.2 - 2021-07-12
This patch ensures that we shorten tracebacks for tests which fail due to \
inconsistent data generation between runs (i.e. raise Flaky).
6.14.1 - 2021-07-02
This patch updates some internal type annotations. There is no user-visible change.
Files: