This release emits a more useful error message when "@given()" is
applied to a coroutine function, i.e. one defined using "async def"
(issue #3054).
This was previously only handled by the generic "return_value" health
check, which doesn't direct you to use either a custom executor or a
library such as pytest-trio or pytest-asyncio to handle it for you.
This patch fixes a regression in Hypothesis 6.14.8, where
"from_type()" failed to resolve types which inherit from multiple
parametrised generic types, affecting the returns package (issue
#3060).
This patch ensures that registering a strategy for a subclass of a a
parametrised generic type such as "class Lines(Sequence[str]):" will
not "leak" into unrelated strategies such as
"st.from_type(Sequence[int])" (issue #2951). Unfortunately this fix
requires PEP 560, meaning Python 3.7 or later.
This patch improves the error message for issue #3016, where PEP
585 builtin generics with self-referential forward-reference strings
cannot be resolved to a strategy by "from_type()".
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps hypothesis from 6.3.4 to 6.15.0.
Release notes
Sourced from hypothesis's releases.
... (truncated)
Commits
bf2c4be
Bump hypothesis-python version to 6.15.0 and update changelog2c14bae
Merge pull request #3056 from Zac-HD/coroutine-healthcheck0dd057f
Update pinned dependencies5eb54e7
Bump hypothesis-python version to 6.14.9 and update changelogae4a2e0
Adds a failing test for #3060 (#3063)25a1a48
Closes #3061 (#3062)1f0c8f4
Bump hypothesis-python version to 6.14.8 and update changeloga9b9596
Merge pull request #2952 from Zac-HD/fix-29510106cfd
Improve try_issubclass7275540
Fix pytest on py310 rcDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)