Skip to content

Commit

Permalink
Merge pull request #3149 from HypothesisWorks/create-pull-request/patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac-HD authored Nov 15, 2021
2 parents ef19961 + 0b3798d commit e72ce42
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
6 changes: 3 additions & 3 deletions hypothesis-python/docs/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,7 @@ that are running in multiple threads (:issue:`2717`).

This patch improves the type annotations for :func:`~hypothesis.strategies.one_of`,
by adding overloads to handle up to five distinct arguments as
:class:`~python:typing.Union` before falling back to :class:`~python:typing.Any`,
:obj:`~python:typing.Union` before falling back to :obj:`~python:typing.Any`,
as well as annotating the ``|`` (``__or__``) operator for strategies (:issue:`2765`).

.. _v6.0.2:
Expand Down Expand Up @@ -1395,7 +1395,7 @@ parameterized standard collection types, which are new in Python 3.9
-------------------

This patch fixes :func:`~hypothesis.strategies.builds`, so that when passed
:obj:`~hypothesis.infer` for an argument with a non-:class:`~python:typing.Optional`
:obj:`~hypothesis.infer` for an argument with a non-:obj:`~python:typing.Optional`
type annotation and a default value of ``None`` to build a class which defines
an explicit ``__signature__`` attribute, either ``None`` or that type may be
generated.
Expand Down Expand Up @@ -1577,7 +1577,7 @@ The :func:`~hypothesis.target` function now accepts integers as well as floats.
5.34.1 - 2020-09-11
-------------------

This patch adds explicit :class:`~python:typing.Optional` annotations to our public API,
This patch adds explicit :obj:`~python:typing.Optional` annotations to our public API,
to better support users who run :pypi:`mypy` with ``--strict`` or ``no_implicit_optional=True``.

Thanks to Krzysztof Przybyła for bringing this to our attention and writing the patch!
Expand Down
4 changes: 2 additions & 2 deletions requirements/coverage.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ click==8.0.3
# via
# -r requirements/coverage.in
# black
coverage==6.1.1
coverage==6.1.2
# via -r requirements/coverage.in
dpcontracts==0.6.0
# via -r requirements/coverage.in
Expand Down Expand Up @@ -54,7 +54,7 @@ pyyaml==6.0
# via libcst
redis==3.5.3
# via fakeredis
regex==2021.11.2
regex==2021.11.10
# via black
six==1.16.0
# via
Expand Down
25 changes: 12 additions & 13 deletions requirements/tools.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ babel==2.9.1
# via sphinx
backcall==0.2.0
# via ipython
backports.entry-points-selectable==1.1.0
backports.entry-points-selectable==1.1.1
# via virtualenv
bandit==1.7.0
bandit==1.7.1
# via flake8-bandit
beautifulsoup4==4.10.0
# via sphinx-codeautolink
Expand Down Expand Up @@ -51,7 +51,7 @@ colorama==0.4.4
# via twine
com2ann==0.3.0
# via shed
coverage==6.1.1
coverage==6.1.2
# via -r requirements/tools.in
cryptography==35.0.0
# via secretstorage
Expand Down Expand Up @@ -118,25 +118,25 @@ gitpython==3.1.24
# via bandit
idna==3.3
# via requests
imagesize==1.2.0
imagesize==1.3.0
# via sphinx
importlib-metadata==4.8.1
importlib-metadata==4.8.2
# via
# keyring
# twine
iniconfig==1.1.1
# via pytest
ipython==7.29.0
# via -r requirements/tools.in
isort==5.10.0
isort==5.10.1
# via shed
jedi==0.18.0
# via ipython
jeepney==0.7.1
# via
# keyring
# secretstorage
jinja2==3.0.2
jinja2==3.0.3
# via sphinx
keyring==23.2.1
# via twine
Expand Down Expand Up @@ -232,7 +232,7 @@ pyyaml==6.0
# libcst
readme-renderer==30.0
# via twine
regex==2021.11.2
regex==2021.11.10
# via black
requests==2.26.0
# via
Expand All @@ -252,7 +252,6 @@ shed==0.5.3
# via -r requirements/tools.in
six==1.16.0
# via
# bandit
# bleach
# python-dateutil
# tox
Expand All @@ -265,9 +264,9 @@ snowballstemmer==2.1.0
# sphinx
sortedcontainers==2.4.0
# via hypothesis (hypothesis-python/setup.py)
soupsieve==2.3
soupsieve==2.3.1
# via beautifulsoup4
sphinx==4.2.0
sphinx==4.3.0
# via
# -r requirements/tools.in
# sphinx-codeautolink
Expand Down Expand Up @@ -316,15 +315,15 @@ traitlets==5.1.1
# via
# ipython
# matplotlib-inline
twine==3.5.0
twine==3.6.0
# via -r requirements/tools.in
types-click==7.1.7
# via -r requirements/tools.in
types-pkg-resources==0.1.3
# via -r requirements/tools.in
types-pytz==2021.3.0
# via -r requirements/tools.in
types-redis==3.5.15
types-redis==3.5.16
# via -r requirements/tools.in
typing-extensions==3.10.0.2
# via
Expand Down
3 changes: 2 additions & 1 deletion tooling/src/hypothesistooling/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,8 @@ def run_tox(task, version):

# See update_python_versions() above
# When adding or removing a version, also update the env lists in tox.ini and
# workflows/main.yml, and the corresponding @python_tests function below.
# workflows/main.yml, the `Programming Language ::` declaration(s) in setup.py,
# and the corresponding @python_tests function below.
PY36 = "3.6.15"
PY37 = "3.7.12"
PY38 = PYMAIN = "3.8.12" # Sync PYMAIN minor version with GH Actions main.yml
Expand Down

0 comments on commit e72ce42

Please sign in to comment.