pkgsrc/devel/py-hypothesis
adam e5143d2a49 py-hypothesis: updated to 3.68.0
3.68.0:
:func:~hypothesis.extra.numpy.arrays now checks that integer and float values drawn from elements and fill strategies can be safely cast to the dtype of the array, and emits a warning otherwise.

Elements in the resulting array could previously violate constraints on the elements strategy due to floating-point overflow or truncation of integers to fit smaller types.

3.67.1:
This release contains a tiny refactoring of the internals. There is no user-visible change.

3.67.0:
This release adds a width argument to :func:~hypothesis.strategies.floats, to generate lower-precision floating point numbers for e.g. Numpy arrays.

The generated examples are always instances of Python's native float type, which is 64bit, but passing width=32 will ensure that all values can be exactly represented as 32bit floats. This can be useful to avoid overflow (to +/- infinity), and for efficiency of generation and shrinking.

Half-precision floats (width=16) are also supported, but require Numpy if you are running Python 3.5 or earlier.
2018-08-17 07:15:22 +00:00
..
DESCR
distinfo py-hypothesis: updated to 3.68.0 2018-08-17 07:15:22 +00:00
Makefile py-hypothesis: updated to 3.68.0 2018-08-17 07:15:22 +00:00
PLIST py-hypothesis: updated to 3.68.0 2018-08-17 07:15:22 +00:00