github HypothesisWorks/hypothesis hypothesis-python-5.36.0
Hypothesis for Python - version 5.36.0

latest releases: hypothesis-python-6.102.4, hypothesis-python-6.102.3, hypothesis-python-6.102.2...
3 years ago

This release upgrades the "from_dtype()" strategy to pass optional
"**kwargs" to the inferred strategy, and upgrades the "arrays()"
strategy to accept an "elements=kwargs" dict to pass through to
"from_dtype()".

"arrays(floating_dtypes(), shape, elements={"min_value": -10,
"max_value": 10})" is a particularly useful pattern, as it allows for
any floating dtype without triggering the roundoff warning for smaller
types or sacrificing variety for larger types (issue #2552).

The canonical version of these notes (with links) is on readthedocs.

Don't miss a new hypothesis release

NewReleases is sending notifications on new releases.