Strawberry GraphQL @ 0.229.0
Released
This release improves our support for generic types, now using the same the same generic multiple times with a list inside an interface or union is supported, for example the following will work:
import strawberry
@strawberry.typeclass BlockRow[T]: items: list[T]
@strawberry.typeclass Query: @strawberry.field def blocks(self) -> list[BlockRow[str] | BlockRow[int]]: return [ BlockRow(items=["a", "b", "c"]), BlockRow(items=[1, 2, 3, 4]), ]
schema = strawberry.Schema(query=Query)
Releases contributed by @patrick91 via #3463