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