Skip to content

Hypothesis version 6.160.0

Latest

Choose a tag to compare

@Zac-HD Zac-HD released this 22 Jul 14:12

"Bundle" now supports efficient ".filter()" and ".map()" methods,
which compose with "consumes()" in either order (issue #3944).
Previously, "consumes(bundle).filter(fn)" could remove rejected values
from the bundle while retrying, and "consumes(bundle.filter(fn))" was
a type error; filtered draws now select among currently-matching
values and consume only the value which was actually drawn.

Thanks to Reagan Lee for the initial implementation of this feature in
pull request #4084!

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