Browse Source

Remove no cover now that Pydantic 2.12 is out

pull/14036/head
Patrick Arminio 10 months ago
parent
commit
13f6949477
Failed to extract signature
  1. 2
      fastapi/_compat.py

2
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,
)

Loading…
Cancel
Save