From 8a98750a30af6054a3787a5d06e01157b1bc8652 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janek=20Nouvertn=C3=A9?= <25355197+provinzkraut@users.noreply.github.com> Date: Sun, 25 Aug 2024 12:02:30 +0200 Subject: [PATCH] formatting --- litestar/handlers/http_handlers/decorators.py | 9 +-------- tests/unit/test_handlers/test_http_handlers/test_head.py | 2 +- 2 files changed, 2 insertions(+), 9 deletions(-) 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