Changelog History
Page 5
-
v5.5.0 Changes
February 07, 2020๐ Our style guide suggests that optional parameters should usually be
keyword-only arguments (see PEP 3102 ) to prevent confusion based
on positional arguments - for example,
"hypothesis.strategies.floats()" takes up to four boolean flags and
many of the Numpy strategies have both "dims" and "side" bounds.๐ This release converts most optional parameters in our API to use
keyword-only arguments - and adds a compatibility shim so you get
โ warnings rather than errors everywhere (issue #2130).โ The canonical version of these notes (with links) is on readthedocs.
-
v5.4.2 Changes
February 06, 2020๐ This patch fixes compatibility with Python 3.5.2 (issue #2334). Note
โ that we only test the latest patch of each minor version, though as in
this case we usually accept pull requests for older patch versions.โ The canonical version of these notes (with links) is on readthedocs.
-
v5.4.1 Changes
February 01, 2020This patch improves the repr of "from_type()", so that in most cases
it will display the strategy it resolves to rather than
"from_type(...)". The latter form will continue to be used where
resolution is not immediately successful, e.g. invalid arguments or
recursive type definitions involving forward references.โ The canonical version of these notes (with links) is on readthedocs.
-
v5.4.0 Changes
January 30, 2020๐ This release removes support for Python 3.5.0 and 3.5.1, where the
"typing" module was quite immature (e.g. missing "overload()" and
"Type").Note that Python 3.5 will reach its end-of-life in September 2020, and
๐ new releases of Hypothesis may drop support somewhat earlier.Note:
โ "pip install hypothesis" should continue to give you the latest
compatible version. If you have somehow ended up with an
โก๏ธ incompatible version, you need to update your packaging stack to
๐ "pip >= 9.0" and "setuptools >= 24.2" - see here for details. Then
"pip uninstall hypothesis && pip install hypothesis" will get you
back to a compatible version.โ The canonical version of these notes (with links) is on readthedocs.
-
v5.3.1 Changes
January 26, 2020This patch does some minor internal cleanup; there is no user-visible
๐ change.โ The canonical version of these notes (with links) is on readthedocs.
-
v5.3.0 Changes
January 21, 2020The standard library "ipaddress" module is new in Python 3, and this
๐ release adds the new "ip_addresses()" strategy to generate
"IPv4Address"es and/or "IPv6Address"es (depending on the "v" and
"network" arguments).If you use them in type annotations, "from_type()" now has strategies
registered for "ipaddress" address, network, and interface types.The provisional strategies for IP address strings are therefore
๐ deprecated.โ The canonical version of these notes (with links) is on readthedocs.
-
v5.2.1 Changes
January 21, 2020โช This patch reverts version 5.2, due to a strange issue where indexing
an array of strings can raise an error instead of returning an item
which contains certain surrogate characters.โ The canonical version of these notes (with links) is on readthedocs.
-
v5.2.0 Changes
January 19, 2020๐ This release allows "from_dtype()" to generate Unicode strings which
cannot be encoded in UTF-8, but are valid in Numpy arrays (which use
UTF-32).โ The canonical version of these notes (with links) is on readthedocs.
-
v5.1.6 Changes
January 19, 2020๐ This patch fixes issue #2320, where "from_type(Set[Hashable])" could
raise an internal error because "Decimal("snan")" is of a hashable
type, but raises an error when hashed. We now ensure that set
elements and dict keys in generic types can actually be hashed.โ The canonical version of these notes (with links) is on readthedocs.
-
v5.1.5 Changes
January 12, 2020๐ This patch fixes an internal error when running in an IPython repl or
๐ Jupyter notebook on Windows (issue #2319), and an internal error on
Python 3.5.1 (issue #2318).โ The canonical version of these notes (with links) is on readthedocs.