Browse Source

Remove unused type ignore

pull/14036/head
Patrick Arminio 10 months ago
parent
commit
973b6570c7
Failed to extract signature
  1. 4
      fastapi/_compat.py

4
fastapi/_compat.py

@ -116,9 +116,7 @@ if PYDANTIC_V2:
# 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):
from pydantic.warnings import ( # type: ignore[attr-defined]
UnsupportedFieldAttributeWarning,
)
from pydantic.warnings import UnsupportedFieldAttributeWarning
warnings.simplefilter(
"ignore", category=UnsupportedFieldAttributeWarning

Loading…
Cancel
Save