This patch fixes invalid annotations detected for the tests generated
by Ghostwritter. It will now correctly generate "Optional" types with
just one type argument and handle union expressions inside of type
arguments correctly. Additionally, it now supports code with the "from
future import annotations" marker for Python 3.10 and newer.
Hypothesis now reports some failing inputs by showing the call which
constructed an object, rather than the repr of the object. This can
be helpful when the default repr does not include all relevant
details, and will unlock further improvements in a future version.
For now, we capture calls made via "builds()", and via
SearchStrategy.map().
The Ghostwritter will now include type annotations on tests for type-
annotated code. If you want to force this to happen (or not happen),
pass a boolean to the new "annotate=" argument to the Python
functions, or the "--[no-]annotate" CLI flag.
This patch tweaks "xps.arrays()" internals to improve PyTorch
compatibility. Specifically, "torch.full()" does not accept integers
as the shape argument (n.b. technically "size" in torch), but such
behaviour is expected in internal code, so we copy the "torch" module
... (truncated)
Commits
12d39b4 Bump hypothesis-python version to 6.65.2 and update changelog
4c5b65d Merge pull request #3556 from ThunderKey/improve-type-detection-for-annotations
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.43.3 to 6.65.2.
Release notes
Sourced from hypothesis's releases.
... (truncated)
Commits
12d39b4
Bump hypothesis-python version to 6.65.2 and update changelog4c5b65d
Merge pull request #3556 from ThunderKey/improve-type-detection-for-annotations8a1cd94
filter the empty annotations earlierf7ed695
dont use _get_params for detecting the annotations, since the fallbacks dont ...caf1775
Bump hypothesis-python version to 6.65.1 and update changelog736eb0f
added missing no cover comment519ad35
Merge pull request #3561 from HypothesisWorks/DRMacIver/pretty-print-enumsf5e4ee4
if there is a syntax error in the annotations the should be ignored for the f...38ac9d9
simplified using eval_str for python >= 3.10b2f7e6d
Add missing release fileDependabot 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)