Skip to content

Commit 4acf049

Browse files
committed
Release 🍓 0.289.7
1 parent 861f07c commit 4acf049

File tree

3 files changed

+45
-40
lines changed

3 files changed

+45
-40
lines changed

CHANGELOG.md

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

4+
0.289.7 - 2026-01-26
5+
--------------------
6+
7+
Fix nested generics with resolver-backed fields to avoid duplicate type names.
8+
9+
Example (previously raised `DuplicatedTypeName`):
10+
11+
```python
12+
import strawberry
13+
14+
15+
@strawberry.type
16+
class Collection[T]:
17+
field1: list[T] = strawberry.field(resolver=lambda: [])
18+
19+
20+
@strawberry.type
21+
class Container[T]:
22+
items: list[T]
23+
24+
25+
@strawberry.type
26+
class TypeA: ...
27+
28+
29+
@strawberry.type
30+
class TypeB: ...
31+
32+
33+
@strawberry.type
34+
class Query:
35+
@strawberry.field
36+
def a(self) -> Container[Collection[TypeA]]: ...
37+
38+
@strawberry.field
39+
def b(self) -> Container[Collection[TypeB]]: ...
40+
41+
42+
strawberry.Schema(query=Query)
43+
```
44+
45+
Contributed by [Thiago Bellini Ribeiro](https://github.com/bellini666) via [PR #4162](https://github.com/strawberry-graphql/strawberry/pull/4162/)
46+
47+
448
0.289.6 - 2026-01-26
549
--------------------
650

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.289.6"
3+
version = "0.289.7"
44
description = "A library for creating GraphQL APIs"
55
authors = [{ name = "Patrick Arminio", email = "[email protected]" }]
66
license = { text = "MIT" }

0 commit comments

Comments
 (0)