This release fixes an issue when trying to use Annotated[strawberry.auto, ...]
on python 3.10 or older, which got evident after the fix from 0.196.1.
Previously we were throwing the type away, since it usually is Any, but python
3.10 and older will validate that the first argument passed for Annotated
is callable (3.11+ does not do that anymore), and StrawberryAuto is not.
This changes it to keep that Any, which is also what someone would expect
when resolving the annotation using our custom eval_type function.
This release fixes an issue where annotations resolution for auto and lazy fields
using Annotated where not preserving the remaining arguments because of a
typo in the arguments filtering.
This release adds support for union with a single member, they are
useful for future proofing your schema in cases you know a field
will be part of a union in future.
@​strawberry.type
class Query:
# note: Python's Union type doesn't support single members,
# Union[Audio] is exactly the same as Audio, so we use
# use Annotated and strawberry.union to tell Strawberry this is
</tr></table>
This release fixes an issue when trying to use Annotated[strawberry.auto, ...]
on python 3.10 or older, which got evident after the fix from 0.196.1.
Previously we were throwing the type away, since it usually is Any, but python
3.10 and older will validate that the first argument passed for Annotated
is callable (3.11+ does not do that anymore), and StrawberryAuto is not.
This changes it to keep that Any, which is also what someone would expect
when resolving the annotation using our custom eval_type function.
This release fixes an issue where annotations resolution for auto and lazy fields
using Annotated where not preserving the remaining arguments because of a
typo in the arguments filtering.
This release adds support for union with a single member, they are
useful for future proofing your schema in cases you know a field
will be part of a union in future.
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 strawberry-graphql from 0.190.0 to 0.197.0.
Release notes
Sourced from strawberry-graphql's releases.
... (truncated)
Changelog
Sourced from strawberry-graphql's changelog.
... (truncated)
Commits
4b9e8bb
Release 🍓 0.197.05f72383
chore: remove eol python 3.7 (#2907)313290c
Bump types-protobuf from 4.23.0.1 to 4.23.0.2 (#2977)55b93b5
Bump botocore from 1.31.9 to 1.31.14 (#2991)a9b671d
[pre-commit.ci] pre-commit autoupdate (#2975)4ee8ab0
Bump ddtrace from 1.17.1 to 1.17.2 (#2984)0227601
Release 🍓 0.196.23c47ef7
fix: do not strip the type when using auto (#2990)5c68c7e
Release 🍓 0.196.15bd4102
fix: preserve extra annotations when resolving auto/lazy fields (#2983)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)