Skip to content

Commit 6717f30

Browse files
Copilotsobolevn
andauthored
Update hypothesis to ^6.151 and fix repr change in test (#2371)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: sobolevn <4660275+sobolevn@users.noreply.github.com> Co-authored-by: sobolevn <mail@sobolevn.me>
1 parent ec156a6 commit 6717f30

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

poetry.lock

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ classifiers = [
3434
dependencies.python = "^3.10"
3535
dependencies.typing-extensions = ">=4.0,<5.0"
3636
dependencies.pytest = { version = ">=8,<10", optional = true }
37-
dependencies.hypothesis = { version = "^6.136", optional = true }
37+
dependencies.hypothesis = { version = "^6.151", optional = true }
3838
dependencies.mypy = { version = ">=1.12,<1.18", optional = true }
3939
extras.compatible-mypy = [ "mypy" ]
4040
extras.check-laws = [ "pytest", "hypothesis" ]

returns/contrib/hypothesis/laws.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def clean_plugin_context() -> Iterator[None]:
207207
"""
208208
saved_stategies = {}
209209
for strategy_key, strategy in types._global_type_lookup.items(): # noqa: SLF001
210-
if isinstance( # type: ignore[redundant-expr]
210+
if isinstance( # type: ignore[redundant-expr, unused-ignore]
211211
strategy_key,
212212
type,
213213
) and strategy_key.__module__.startswith('returns.'):

tests/test_contrib/test_hypothesis/test_type_resolution.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def test_types_to_strategies_default() -> None: # noqa: WPS210
207207
]
208208
assert (
209209
_strategy_string(result[callable_type], Callable[[int, str], bool])
210-
== 'functions(like=lambda *args, **kwargs: <unknown>,'
210+
== 'functions(like=lambda *args, **kwargs: None,'
211211
' returns=booleans(), pure=True)'
212212
)
213213
assert (

0 commit comments

Comments
 (0)