From 47c375f16fcaa0c1321e0bcaf097d6f2b15ed30e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 18 Jul 2025 15:55:37 +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/_compat.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/fastapi/_compat.py b/fastapi/_compat.py index f7f80e090..278f03156 100644 --- a/fastapi/_compat.py +++ b/fastapi/_compat.py @@ -108,8 +108,6 @@ if PYDANTIC_V2: return self.field_info.annotation def __post_init__(self) -> None: - from pydantic import PydanticDeprecatedSince20 - try: self._type_adapter: TypeAdapter[Any] = TypeAdapter( Annotated[self.field_info.annotation, self.field_info]