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

4 hours ago

This patch improves the type annotations for "basic_indices()". The
return type now accurately reflects the "allow_ellipsis" and
"allow_newaxis" parameters, excluding "EllipsisType" or "None" from
the union when those index types are disabled (issue #4607).

Additionally, "assume()" now has overloaded type annotations:
"assume(True)" returns "Literal[True]", while "assume(False)" and
"assume(None)" return "NoReturn".

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.