This patch improves the type annotations for "one_of()", by adding
overloads to handle up to five distinct arguments as "typing.Union"
before falling back to "typing.Any", as well as annotating the "|"
("or") operator for strategies (issue #2765).
This release makes some small improvements to how filtered strategies
work. It should improve the performance of shrinking filtered
strategies, and may under some (probably rare) circumstances improve
the diversity of generated examples.
This patch fixes an interaction where our test statistics handling
made Pytest's "--junit-xml" output fail to validate against the strict
"xunit2" schema (issue #1975).
There are no new features here, as we release those in minor versions.
Instead, 6.0 is a chance for us to remove deprecated features (many
already converted into no-ops), and turn a variety of warnings into
errors.
If you were running on the last version of Hypothesis 5.x without any
Hypothesis deprecation warnings, this will be a very boring upgrade.
In fact, nothing will change for you at all.
Changes
* Many functions now use **PEP 3102** keyword-only arguments where
passing positional arguments was deprecated since 5.5.
"hypothesis.extra.django.from_model()" no longer accepts "model" as
a keyword argument, where it could conflict with fields named
"model".
"randoms()" now defaults to "use_true_random=False".
"complex_numbers()" no longer accepts "min_magnitude=None"; either
use "min_magnitude=0" or just omit the argument.
</tr></table>
... (truncated)
Commits
8f32ba6 Bump hypothesis-python version to 6.0.3 and update changelog
8fd68c5 Merge pull request #2768 from Zac-HD/annotate-unions
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 3.23.3 to 6.0.3.
Release notes
Sourced from hypothesis's releases.
... (truncated)
Commits
8f32ba6
Bump hypothesis-python version to 6.0.3 and update changelog8fd68c5
Merge pull request #2768 from Zac-HD/annotate-unions98c6449
Improve strategy union annotations8ba5835
Remove pointless indirectiond653aae
Merge pull request #2751 from Stranger6667/dd/rust-ci04fddb2
Applycargo fmt
to Conjecture-Rustc144ee1
Add CI job for formatting Rust codefbdad2f
Merge pull request #2762 from amw-zero/remove-conjecture-rust-codeowner6f2af00
Merge pull request #2763 from mristin/Mention-icontract-hypothesis-in-the-docs4db99b5
Mention icontract-hypothesis in the docsDependabot 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)