From 13f694947749e5cc5e2e60d762783048e116346a Mon Sep 17 00:00:00 2001 From: Patrick Arminio Date: Wed, 8 Oct 2025 09:01:42 +0100 Subject: [PATCH] Remove no cover now that Pydantic 2.12 is out --- fastapi/_compat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastapi/_compat.py b/fastapi/_compat.py index 311b265a5..629664cc1 100644 --- a/fastapi/_compat.py +++ b/fastapi/_compat.py @@ -115,7 +115,7 @@ if PYDANTIC_V2: # (e.g. `TypeAdapter(Annotated[int, Field(alias='b')])`). In some cases, we # end up building the type adapter from a model field annotation so we # need to ignore the warning: - if PYDANTIC_VERSION_MINOR_TUPLE >= (2, 12): # pragma: no cover + if PYDANTIC_VERSION_MINOR_TUPLE >= (2, 12): from pydantic.warnings import ( # type: ignore[attr-defined] UnsupportedFieldAttributeWarning, )