Skip to content

Hypothesis version 6.161.6

Latest

Choose a tag to compare

@Zac-HD Zac-HD released this 27 Jul 05:34

This patch improves the display of functions generated by
"functions()". If the "returns=" strategy can only produce a single
value, the function is now shown as a constant lambda such as
"f=lambda x: 3", instead of noting each call to it separately.

We also respect the "repr_pretty()" method of objects which define
one in a few more places, such as the arguments of a failing example.

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