diff --git a/strawberry_django/utils/typing.py b/strawberry_django/utils/typing.py index 8fd315e7..ac04a224 100644 --- a/strawberry_django/utils/typing.py +++ b/strawberry_django/utils/typing.py @@ -15,7 +15,6 @@ overload, ) -from django.db.models import Prefetch from django.db.models.expressions import BaseExpression, Combinable from graphql.type.definition import GraphQLResolveInfo from strawberry.annotation import StrawberryAnnotation @@ -29,6 +28,7 @@ from typing_extensions import Protocol if TYPE_CHECKING: + from django.db.models import Prefetch from django.contrib.auth.base_user import AbstractBaseUser from django.contrib.auth.models import AnonymousUser from typing_extensions import Literal, TypeAlias, TypeGuard