From 5359fb2c9dce42abde84fb43cee18d5c3a8649ae Mon Sep 17 00:00:00 2001 From: CI on behalf of the Hypothesis team Date: Mon, 6 Sep 2021 10:20:37 +0000 Subject: [PATCH] Bump hypothesis-python version to 6.18.0 and update changelog [skip ci] --- hypothesis-python/RELEASE.rst | 15 --------------- hypothesis-python/docs/changes.rst | 20 ++++++++++++++++++++ hypothesis-python/src/hypothesis/version.py | 2 +- 3 files changed, 21 insertions(+), 16 deletions(-) delete mode 100644 hypothesis-python/RELEASE.rst diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst deleted file mode 100644 index 7c4ec9c225..0000000000 --- a/hypothesis-python/RELEASE.rst +++ /dev/null @@ -1,15 +0,0 @@ -RELEASE_TYPE: minor - -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) `. diff --git a/hypothesis-python/docs/changes.rst b/hypothesis-python/docs/changes.rst index d04e7a558f..3886e362ad 100644 --- a/hypothesis-python/docs/changes.rst +++ b/hypothesis-python/docs/changes.rst @@ -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) `. + .. _v6.17.4: ------------------- diff --git a/hypothesis-python/src/hypothesis/version.py b/hypothesis-python/src/hypothesis/version.py index 1add033d6d..201f569594 100644 --- a/hypothesis-python/src/hypothesis/version.py +++ b/hypothesis-python/src/hypothesis/version.py @@ -13,5 +13,5 @@ # # END HEADER -__version_info__ = (6, 17, 4) +__version_info__ = (6, 18, 0) __version__ = ".".join(map(str, __version_info__))