"register_random()" has used "weakref" since 6.27.1 - 2021-11-22,
allowing the "Random"-compatible objects to be garbage-collected when
there are no other references remaining in order to avoid memory
leaks. We now raise an error or emit a warning when this seems likely
to happen immediately.
The type annotation of "register_random()" was also widened so that
structural subtypes of "Random" are accepted by static typecheckers.
Hypothesis now raises an error if you passed a strategy as the
"alphabet=" argument to "text()", and it generated something which was
not a length-one string. This has never been supported, we're just
adding explicit validation to catch cases like this StackOverflow
question.
This patch updates our vendored list of top-level domains, which is
used by the provisional "domains()" strategy, and fixes some incorrect
examples in the docs for "mutually_broadcastable_shapes()".
This patch improves the error message when Hypothesis detects "flush
to zero" mode for floating-point: we now report which package(s)
enabled this, which can make debugging much easier. See issue #3458
... (truncated)
Commits
5ac01d1 Bump hypothesis-python version to 6.58.0 and update changelog
41b420a Merge pull request #3509 from HypothesisWorks/register-random
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 5.23.11 to 6.58.0.
Release notes
Sourced from hypothesis's releases.
... (truncated)
Commits
5ac01d1
Bump hypothesis-python version to 6.58.0 and update changelog41b420a
Merge pull request #3509 from HypothesisWorks/register-random32ba8f9
Tweak weakref explanation2bc6e4e
fix sphinx ref6e5572e
note pypy5ded7e9
update release notesfd1b90a
Mention pypy in docs and consolidate code blocks8b907fd
wrap text and use HypothesisWarning0f22e6a
patch coverage0a43b9b
reorgDependabot 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)