This release updates the typing for the resolver argument in
strawberry.fieldi to support async resolvers.
This means that now you won't get any type
error from Pyright when using async resolver, like the following example:
import strawberry
async def get_user_age() -> int:
return 0
@​strawberry.type
class User:
name: str
age: int = strawberry.field(resolver=get_user_age)
This release updates the typing for the resolver argument in
strawberry.fieldi to support async resolvers.
This means that now you won't get any type
error from Pyright when using async resolver, like the following example:
import strawberry
async def get_user_age() -> int:
return 0
@​strawberry.type
class User:
name: str
age: int = strawberry.field(resolver=get_user_age)
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.133.5 to 0.156.2.
Release notes
Sourced from strawberry-graphql's releases.
... (truncated)
Changelog
Sourced from strawberry-graphql's changelog.
... (truncated)
Commits
eeec5ac
Release 🍓 0.156.2ed24095
Update types (#2528)fd26cc0
Release 🍓 0.156.12962024
feat: add minimal testing communicator for channels. (#2458)319e49b
Bump fastapi from 0.89.1 to 0.90.0 (#2526)987ea89
Bump ddtrace from 1.7.3 to 1.7.4 (#2527)0c1fe21
Release 🍓 0.156.0ebad347
feat: support specialized generic types (#2517)4c94310
Bump django from 3.2.16 to 3.2.17 (#2506)2aec796
Bump pytest-xdist from 3.1.0 to 3.2.0 (#2519)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)