Skip to content

Commit

Permalink
Move import into type-checking block
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorJohn committed Oct 6, 2024
1 parent 72a514e commit 41095a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion strawberry/django/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
from django.http.response import HttpResponseBase
from django.template.exceptions import TemplateDoesNotExist
from django.template.loader import render_to_string
from django.template.response import TemplateResponse
from django.utils.decorators import classonlymethod
from django.views.generic import View

Expand All @@ -43,6 +42,8 @@
from .context import StrawberryDjangoContext

if TYPE_CHECKING:
from django.template.response import TemplateResponse

from strawberry.http import GraphQLHTTPResponse
from strawberry.http.ides import GraphQL_IDE

Expand Down

0 comments on commit 41095a3

Please sign in to comment.