diff --git a/litestar/handlers/http_handlers/decorators.py b/litestar/handlers/http_handlers/decorators.py index e1e390343e..17e287a4ec 100644 --- a/litestar/handlers/http_handlers/decorators.py +++ b/litestar/handlers/http_handlers/decorators.py @@ -3,6 +3,7 @@ from typing import TYPE_CHECKING, Any, Callable, Mapping, Sequence from litestar.enums import HttpMethod, MediaType +from litestar.exceptions import HTTPException from litestar.handlers.http_handlers.base import HTTPRouteHandler from litestar.openapi.spec import Operation, SecurityRequirement from litestar.types import ( @@ -24,14 +25,6 @@ TypeDecodersSequence, TypeEncodersMap, ) -from litestar.exceptions import HTTPException, ImproperlyConfiguredException -from litestar.openapi.spec import Operation -from litestar.response.file import ASGIFileResponse, File -from litestar.types import Empty, TypeDecodersSequence -from litestar.utils import is_class_and_subclass - -from ._utils import is_empty_response_annotation -from .base import HTTPRouteHandler if TYPE_CHECKING: from typing import Any, Mapping, Sequence diff --git a/tests/unit/test_handlers/test_http_handlers/test_head.py b/tests/unit/test_handlers/test_http_handlers/test_head.py index 2808494c93..af17b045c9 100644 --- a/tests/unit/test_handlers/test_http_handlers/test_head.py +++ b/tests/unit/test_handlers/test_http_handlers/test_head.py @@ -3,7 +3,7 @@ import pytest -from litestar import HttpMethod, Litestar, Response, head +from litestar import Litestar, Response, head from litestar.exceptions import ImproperlyConfiguredException from litestar.response.file import ASGIFileResponse, File from litestar.routes import HTTPRoute