Skip to content

Commit

Permalink
build(deps): bump hypothesis from 6.3.4 to 6.8.5 (pydantic#2624)
Browse files Browse the repository at this point in the history
* 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](HypothesisWorks/hypothesis@hypothesis-python-6.3.4...hypothesis-python-6.8.4)

Signed-off-by: dependabot[bot] <support@github.com>

* 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 <em.jolibois@gmail.com>
  • Loading branch information
dependabot[bot] and PrettyWood authored Apr 5, 2021
1 parent 39fd02e commit 22ba2ca
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions pydantic/_hypothesis_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion tests/requirements-linting.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/requirements-testing.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 22ba2ca

Please sign in to comment.