pypi strawberry-graphql 0.315.6

latest releases: 0.316.0, 0.315.7
7 hours ago

Fix UnresolvedFieldTypeError when using from __future__ import annotations together with a module-level Annotated[..., strawberry.lazy(...)] alias. The aliased form now resolves the same as inlining Annotated[...] on the field.

from __future__ import annotations
from typing import TYPE_CHECKING, Annotated
import strawberry

if TYPE_CHECKING:
    from .user import User

LazyUser = Annotated["User", strawberry.lazy(".user")]


@strawberry.type
class Post:
    user: LazyUser  # previously failed

Contributed by @bellini666 in #4415

Don't miss a new strawberry-graphql release

NewReleases is sending notifications on new releases.