From 22ba2ca21a0dfb908c7746c46606ce67ef604154 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 5 Apr 2021 12:19:17 +0200 Subject: [PATCH] build(deps): bump hypothesis from 6.3.4 to 6.8.5 (#2624) * build(deps): bump hypothesis from 6.3.4 to 6.8.4 Bumps [hypothesis](https://github.com/HypothesisWorks/hypothesis) from 6.3.4 to 6.8.4. - [Release notes](https://github.com/HypothesisWorks/hypothesis/releases) - [Commits](https://github.com/HypothesisWorks/hypothesis/compare/hypothesis-python-6.3.4...hypothesis-python-6.8.4) Signed-off-by: dependabot[bot] * fix mypy issues * build(deps): bump hypothesis from 6.8.4 to 6.8.5 Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: PrettyWood --- docs/requirements.txt | 2 +- pydantic/_hypothesis_plugin.py | 4 ++-- tests/requirements-linting.txt | 2 +- tests/requirements-testing.txt | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/requirements.txt b/docs/requirements.txt index e65451ebc4..a0e2a5d86b 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,7 +1,7 @@ ansi2html==1.6.0 flake8==3.9.0 flake8-quotes==3.2.0 -hypothesis==6.3.4 +hypothesis==6.8.5 markdown-include==0.6.0 mdx-truly-sane-lists==1.2 mkdocs==1.1.2 diff --git a/pydantic/_hypothesis_plugin.py b/pydantic/_hypothesis_plugin.py index 2fbcda7824..7b8ec3fdd4 100644 --- a/pydantic/_hypothesis_plugin.py +++ b/pydantic/_hypothesis_plugin.py @@ -149,7 +149,7 @@ def add_luhn_digit(card_number: str) -> str: st.register_type_strategy(pydantic.SecretStr, st.text().map(pydantic.SecretStr)) # IP addresses, networks, and interfaces -st.register_type_strategy(pydantic.IPvAnyAddress, st.ip_addresses()) +st.register_type_strategy(pydantic.IPvAnyAddress, st.ip_addresses()) # type: ignore[arg-type] st.register_type_strategy( pydantic.IPvAnyInterface, st.from_type(ipaddress.IPv4Interface) | st.from_type(ipaddress.IPv6Interface), # type: ignore[arg-type] @@ -220,7 +220,7 @@ def resolve_json(cls): # type: ignore[no-untyped-def] finite = st.floats(allow_infinity=False, allow_nan=False) inner = st.recursive( base=st.one_of(st.none(), st.booleans(), st.integers(), finite, st.text()), - extend=lambda x: st.lists(x) | st.dictionaries(st.text(), x), + extend=lambda x: st.lists(x) | st.dictionaries(st.text(), x), # type: ignore ) return st.builds( json.dumps, diff --git a/tests/requirements-linting.txt b/tests/requirements-linting.txt index 280c75cf99..57221b6a5b 100644 --- a/tests/requirements-linting.txt +++ b/tests/requirements-linting.txt @@ -1,7 +1,7 @@ black==20.8b1 flake8==3.9.0 flake8-quotes==3.2.0 -hypothesis==6.3.4 +hypothesis==6.8.5 isort==5.8.0 mypy==0.812 pycodestyle==2.7.0 diff --git a/tests/requirements-testing.txt b/tests/requirements-testing.txt index 9f5c2ce8be..3554579382 100644 --- a/tests/requirements-testing.txt +++ b/tests/requirements-testing.txt @@ -1,5 +1,5 @@ coverage==5.5 -hypothesis==6.3.4 +hypothesis==6.8.5 # pin importlib-metadata as upper versions need typing-extensions to work if on python < 3.8 importlib-metadata==3.1.0;python_version<"3.8" mypy==0.812