Skip to content

Commit 62edaec

Browse files
committed
🤖 Release 0.324.2
This release fixes fields configured with `strawberry.field()` inside `typing.Annotated`. You can now use this syntax consistently on object types, input types, and interfaces, including in projects that use `from __future__ import annotations`: ```python from typing import Annotated import strawberry Name = Annotated[ str, strawberry.field(name="displayName", default="Anonymous"), ] @strawberry.type class User: name: Name ``` All `strawberry.field()` options are supported. Fields with `default` or `default_factory` can be omitted when creating an instance, and field configuration can be combined with other Strawberry metadata such as named unions. [skip ci]
1 parent 9f9e840 commit 62edaec

4 files changed

Lines changed: 36 additions & 42 deletions

File tree

CHANGELOG.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,40 @@
11
CHANGELOG
22
=========
33

4+
0.324.2 - 2026-08-28
5+
--------------------
6+
7+
This release fixes fields configured with `strawberry.field()` inside
8+
`typing.Annotated`.
9+
10+
You can now use this syntax consistently on object types, input types, and
11+
interfaces, including in projects that use `from __future__ import annotations`:
12+
13+
```python
14+
from typing import Annotated
15+
16+
import strawberry
17+
18+
Name = Annotated[
19+
str,
20+
strawberry.field(name="displayName", default="Anonymous"),
21+
]
22+
23+
24+
@strawberry.type
25+
class User:
26+
name: Name
27+
```
28+
29+
All `strawberry.field()` options are supported. Fields with `default` or
30+
`default_factory` can be omitted when creating an instance, and field
31+
configuration can be combined with other Strawberry metadata such as named
32+
unions.
33+
34+
This release was contributed by [@patrick91](https://github.com/patrick91) in [#4594](https://github.com/strawberry-graphql/strawberry/pull/4594)
35+
36+
Additional contributors: [@ampagent](https://github.com/ampagent), [@Patrick](https://github.com/Patrick)
37+
438
0.324.1 - 2026-08-28
539
--------------------
640

RELEASE.md

Lines changed: 0 additions & 40 deletions
This file was deleted.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "strawberry-graphql"
3-
version = "0.324.1"
3+
version = "0.324.2"
44
description = "A library for creating GraphQL APIs"
55
authors = [{ name = "Patrick Arminio", email = "patrick.arminio@gmail.com" }]
66
license = "MIT"

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)