Skip to content

Commit 153b88b

Browse files
committed
🤖 Release 0.324.3
This release fixes silently ignored `strawberry.field()` metadata in nested type annotations. Strawberry now raises a clear error when field metadata is placed below the class-field annotation, such as on a list item, and explains that it must be moved to the outermost `Annotated` metadata for the field. For example, Strawberry now reports this misplaced metadata: ```python from typing import Annotated import strawberry @strawberry.type class Query: names: list[Annotated[str, strawberry.field(description="A name")]] ``` Move `strawberry.field()` to the field's outermost `Annotated` metadata: ```python @strawberry.type class Query: names: Annotated[list[str], strawberry.field(description="The names")] ``` [skip ci]
1 parent 4fd44aa commit 153b88b

4 files changed

Lines changed: 35 additions & 41 deletions

File tree

CHANGELOG.md

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

4+
0.324.3 - 2026-08-29
5+
--------------------
6+
7+
This release fixes silently ignored `strawberry.field()` metadata in nested type
8+
annotations.
9+
10+
Strawberry now raises a clear error when field metadata is placed below the
11+
class-field annotation, such as on a list item, and explains that it must be moved
12+
to the outermost `Annotated` metadata for the field.
13+
14+
For example, Strawberry now reports this misplaced metadata:
15+
16+
```python
17+
from typing import Annotated
18+
19+
import strawberry
20+
21+
22+
@strawberry.type
23+
class Query:
24+
names: list[Annotated[str, strawberry.field(description="A name")]]
25+
```
26+
27+
Move `strawberry.field()` to the field's outermost `Annotated` metadata:
28+
29+
```python
30+
@strawberry.type
31+
class Query:
32+
names: Annotated[list[str], strawberry.field(description="The names")]
33+
```
34+
35+
This release was contributed by [@patrick91](https://github.com/patrick91) in [#4595](https://github.com/strawberry-graphql/strawberry/pull/4595)
36+
437
0.324.2 - 2026-08-28
538
--------------------
639

RELEASE.md

Lines changed: 0 additions & 39 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.2"
3+
version = "0.324.3"
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)