This release adds support for specialized generic types.
Before, the following code would give an error, saying that T was not
provided to the generic type:
@strawberry.type
class Foo(Generic[T]):
some_var: T
Also, because the type is already specialized, Int won't get inserted to its name,
meaning it will be exported to the schema with a type name of IntFoo and not
IntIntFoo.
For example, this query:
@strawberry.type
class Query:
int_foo: IntFoo
str_foo: Foo[str]
This release adds support for specialized generic types.
Before, the following code would give an error, saying that T was not
provided to the generic type:
@strawberry.type
class Foo(Generic[T]):
some_var: T
Also, because the type is already specialized, Int won't get inserted to its name,
meaning it will be exported to the schema with a type name of IntFoo and not
IntIntFoo.
For example, this query:
@strawberry.type
class Query:
int_foo: IntFoo
str_foo: Foo[str]
Will generate a schema like this:
type IntFoo {
someVar: Int!
}
type StrFoo {
someVar: String!
}
type Query {
intFoo: IntFoo!
strfoo: StrFoo!
</tr></table>
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.0.
Release notes
Sourced from strawberry-graphql's releases.
... (truncated)
Changelog
Sourced from strawberry-graphql's changelog.
... (truncated)
Commits
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)48efd1b
Bump types-requests from 2.28.11.8 to 2.28.11.12 (#2520)374c621
Bump cryptography from 39.0.0 to 39.0.1 (#2523)b8b3eab
Lintf144615
Skip test on windows9986f5f
Release 🍓 0.155.454c17c9
Fix file not found error when exporting schema with lazy types from CLI (#2512)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)