From 786d059c356ade5cfe869cca15ae99b00d87787f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 30 Oct 2025 20:43:03 +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/exceptions.py | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/fastapi/dependencies/models.py b/fastapi/dependencies/models.py index d0783c8f0..3d3567d03 100644 --- a/fastapi/dependencies/models.py +++ b/fastapi/dependencies/models.py @@ -33,7 +33,9 @@ class Dependant: use_cache: bool = True path: Optional[str] = None scope: Literal["function", "request"] = "request" - cache_key: Tuple[Optional[Callable[..., Any]], Tuple[str, ...], str] = field(init=False) + cache_key: Tuple[Optional[Callable[..., Any]], Tuple[str, ...], str] = field( + init=False + ) def __post_init__(self) -> None: self.cache_key = ( diff --git a/fastapi/exceptions.py b/fastapi/exceptions.py index ca889c7cb..0620428be 100644 --- a/fastapi/exceptions.py +++ b/fastapi/exceptions.py @@ -153,6 +153,7 @@ class DependencyScopeError(FastAPIError): (narrower) scope. """ + class ValidationException(Exception): def __init__(self, errors: Sequence[Any]) -> None: self._errors = errors