Skip to content

Commit

Permalink
Bump hypothesis-python version to 6.18.0 and update changelog
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
DRMacIver committed Sep 6, 2021
1 parent 5846a1f commit 5359fb2
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 16 deletions.
15 changes: 0 additions & 15 deletions hypothesis-python/RELEASE.rst

This file was deleted.

20 changes: 20 additions & 0 deletions hypothesis-python/docs/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,26 @@ Hypothesis 6.x

.. include:: ../RELEASE.rst

.. _v6.18.0:

-------------------
6.18.0 - 2021-09-06
-------------------

This release teaches :func:`~hypothesis.strategies.from_type` a neat trick:
when resolving an :obj:`python:typing.Annotated` type, if one of the annotations
is a strategy object we use that as the inferred strategy. For example:

.. code-block:: python
PositiveInt = Annotated[int, st.integers(min_value=1)]
If there are multiple strategies, we use the last outer-most annotation.
See :issue:`2978` and :pull:`3082` for discussion.

*Requires Python 3.9 or later for*
:func:`get_type_hints(..., include_extras=False) <typing.get_type_hints>`.

.. _v6.17.4:

-------------------
Expand Down
2 changes: 1 addition & 1 deletion hypothesis-python/src/hypothesis/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
#
# END HEADER

__version_info__ = (6, 17, 4)
__version_info__ = (6, 18, 0)
__version__ = ".".join(map(str, __version_info__))

0 comments on commit 5359fb2

Please sign in to comment.