diff --git a/CHANGELOG.md b/CHANGELOG.md index 919eb0e0ca..78a342acb3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,33 @@ CHANGELOG ========= +0.236.1 - 2024-07-23 +-------------------- + +This release fixes an issue where optional lazy types using `| None` were +failing to be correctly resolved inside modules using future annotations, e.g. + +```python +from __future__ import annotations + +from typing import Annotated, TYPE_CHECKING + +import strawberry + +if TYPE_CHECKING: + from types import Group + + +@strawberry.type +class Person: + group: Annotated["Group", strawberry.lazy("types.group")] | None +``` + +This should now work as expected. + +Contributed by [Thiago Bellini Ribeiro](https://github.com/bellini666) via [PR #3576](https://github.com/strawberry-graphql/strawberry/pull/3576/) + + 0.236.0 - 2024-07-17 -------------------- diff --git a/RELEASE.md b/RELEASE.md deleted file mode 100644 index ee92e20f74..0000000000 --- a/RELEASE.md +++ /dev/null @@ -1,22 +0,0 @@ -Release type: patch - -This release fixes an issue where optional lazy types using `| None` were -failing to be correctly resolved inside modules using future annotations, e.g. - -```python -from __future__ import annotations - -from typing import Annotated, TYPE_CHECKING - -import strawberry - -if TYPE_CHECKING: - from types import Group - - -@strawberry.type -class Person: - group: Annotated["Group", strawberry.lazy("types.group")] | None -``` - -This should now work as expected. diff --git a/pyproject.toml b/pyproject.toml index f05db4f2ea..017d9c5410 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [tool.poetry] name = "strawberry-graphql" packages = [ { include = "strawberry" } ] -version = "0.236.0" +version = "0.236.1" description = "A library for creating GraphQL APIs" authors = ["Patrick Arminio "] license = "MIT"