"from_type()" can now resolve "TypeVar" instances when the "bound" is
a "ForwardRef", so long as that name is in fact defined in the same
module as the typevar (no "TYPE_CHECKING" tricks, sorry). This feature
requires Python 3.7 or later.
Thanks to Zac Hatfield-Dodds and Nikita Sobolev for this feature!
This release improves the performance of some methods in Hypothesis's
internal automaton library. These are currently only lightly used by
user code, but this may result in slightly faster shrinking.
"register_type_strategy()" no longer accepts parametrised user-defined
generic types, because the resolution logic was quite badly broken
(issue #2537).
Instead of registering a strategy for e.g. "MyCollection[int]", you
should register a function for "MyCollection" and inspect the type
parameters within that function.
Thanks to Nikita Sobolev for the bug report, design assistance, and
pull request to implement this feature!
Tired of writing tests? Or new to Hypothesis and not sure where to
start?
This release is for you! With our new Ghostwriter functions and
hypothesis write ... command-line interface, you can stop writing
tests entirely... or take the source code Hypothesis writes for you as
a starting point.
This has been in the works for months, from issue #2118 to versions
5.18.3, 5.23.5, and 5.23.5 - particular thanks to the many people who
reviewed pull requests or commented on demos, and to Timothy Crosley's
hypothesis-auto project for inspiration.
Commits
e18541b Bump hypothesis-python version to 5.28.0 and update changelog
8ffefb4 Merge pull request #2550 from sobolevn/issue-2536
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)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Bumps hypothesis from 4.36.2 to 5.28.0.
Release notes
Sourced from hypothesis's releases.
Commits
e18541b
Bump hypothesis-python version to 5.28.0 and update changelog8ffefb4
Merge pull request #2550 from sobolevn/issue-25367e82311
Fixes CI99dead1
Addresses reviewceaa66d
Update hypothesis-python/src/hypothesis/strategies/_internal/types.py4c927df
Update hypothesis-python/RELEASE.rst5748627
Fixes tests once againca38621
Fixes tests for python3.51eccf2c
Fixes CI0c8450a
OuchDependabot 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) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)