Skip to content

Latest commit

History

History
20 lines (15 loc) 路 358 Bytes

RELEASE.md

File metadata and controls

20 lines (15 loc) 路 358 Bytes

Release type: patch

Add support for piping StrawberryUnion and None when annotating types.

For example:

@strawberry.type
class Cat:
    name: str

@strawberry.type
class Dog:
    name: str

Animal = strawberry.union("Animal", (Cat, Dog))

@strawberry.type
class Query:
    animal: Animal | None # This line no longer triggers a TypeError