From e39ad1566700d6466bd10b4c5573c7e59306bd66 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 8 Nov 2025 09:30:19 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20[pre-commit.ci]=20Auto=20format?= =?UTF-8?q?=20from=20pre-commit.com=20hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fastapi/dependencies/models.py | 4 ++-- fastapi/params.py | 4 ++-- fastapi/utils.py | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/fastapi/dependencies/models.py b/fastapi/dependencies/models.py index 65ef1aad6..725559a56 100644 --- a/fastapi/dependencies/models.py +++ b/fastapi/dependencies/models.py @@ -7,11 +7,11 @@ from typing import Any, Callable, List, Optional, Sequence, Tuple, Union, cast from fastapi._compat import ModelField from fastapi.security.base import SecurityBase from fastapi.types import ( + DependencyScope, EndpointDependencyCacheKey, + EndpointDependencyScope, LifespanDependencyCacheKey, - DependencyScope, LifespanDependencyScope, - EndpointDependencyScope, ) from typing_extensions import TypeAlias diff --git a/fastapi/params.py b/fastapi/params.py index 0f19122e3..4cbee3c7c 100644 --- a/fastapi/params.py +++ b/fastapi/params.py @@ -5,7 +5,7 @@ from typing import Any, Callable, Dict, List, Optional, Sequence, Union from fastapi.openapi.models import Example from pydantic.fields import FieldInfo -from typing_extensions import Annotated, Literal, TypeAlias, deprecated +from typing_extensions import Annotated, deprecated from ._compat import ( PYDANTIC_V2, @@ -13,7 +13,7 @@ from ._compat import ( Undefined, ) from .exceptions import InvalidDependencyScope -from .types import EndpointDependencyScope, DependencyScope +from .types import DependencyScope, EndpointDependencyScope _Unset: Any = Undefined diff --git a/fastapi/utils.py b/fastapi/utils.py index fbaaeb6ae..6d7d4944d 100644 --- a/fastapi/utils.py +++ b/fastapi/utils.py @@ -6,16 +6,16 @@ from dataclasses import is_dataclass from typing import ( TYPE_CHECKING, Any, + Awaitable, + Callable, Dict, MutableMapping, Optional, Set, Type, + TypeVar, Union, cast, - Awaitable, - TypeVar, - Callable, ) from weakref import WeakKeyDictionary