From d723b25cc0809bf4756aed310d008ab68e72f3a9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Mar 2021 10:22:45 +0100 Subject: [PATCH] build(deps): bump hypothesis from 6.3.0 to 6.3.4 (#2431) * build(deps): bump hypothesis from 6.3.0 to 6.3.4 Bumps [hypothesis](https://github.com/HypothesisWorks/hypothesis) from 6.3.0 to 6.3.4. - [Release notes](https://github.com/HypothesisWorks/hypothesis/releases) - [Commits](https://github.com/HypothesisWorks/hypothesis/compare/hypothesis-python-6.3.0...hypothesis-python-6.3.4) Signed-off-by: dependabot[bot] * fix: mypy lint Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: PrettyWood --- docs/requirements.txt | 2 +- pydantic/_hypothesis_plugin.py | 2 +- tests/requirements-linting.txt | 2 +- tests/requirements-testing.txt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/requirements.txt b/docs/requirements.txt index 293dfca..41b7b16 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,7 +1,7 @@ ansi2html==1.6.0 flake8==3.8.4 flake8-quotes==3.2.0 -hypothesis==6.3.0 +hypothesis==6.3.4 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 345ecea..2fbcda7 100644 --- a/pydantic/_hypothesis_plugin.py +++ b/pydantic/_hypothesis_plugin.py @@ -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), # type: ignore + extend=lambda x: st.lists(x) | st.dictionaries(st.text(), x), ) return st.builds( json.dumps, diff --git a/tests/requirements-linting.txt b/tests/requirements-linting.txt index 7cb785d..c267643 100644 --- a/tests/requirements-linting.txt +++ b/tests/requirements-linting.txt @@ -1,7 +1,7 @@ black==20.8b1 flake8==3.8.4 flake8-quotes==3.2.0 -hypothesis==6.3.0 +hypothesis==6.3.4 isort==5.7.0 mypy==0.812 pycodestyle==2.6.0 diff --git a/tests/requirements-testing.txt b/tests/requirements-testing.txt index 1590d59..69d7290 100644 --- a/tests/requirements-testing.txt +++ b/tests/requirements-testing.txt @@ -1,5 +1,5 @@ coverage==5.5 -hypothesis==6.3.0 +hypothesis==6.3.4 # 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