Skip to content

🍓 0.236.1

Compare
Choose a tag to compare
@botberry botberry released this 23 Jul 21:05
· 159 commits to main since this release

This release fixes an issue where optional lazy types using | None were
failing to be correctly resolved inside modules using future annotations, e.g.

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.

Releases contributed by @bellini666 via #3576