diff --git a/fastapi/_compat/may_v1.py b/fastapi/_compat/may_v1.py index 5b0bd2445..7bd490a73 100644 --- a/fastapi/_compat/may_v1.py +++ b/fastapi/_compat/may_v1.py @@ -79,23 +79,23 @@ if sys.version_info >= (3, 14): else: - from .v1 import AnyUrl as AnyUrl # type: ignore[assignment] - from .v1 import BaseConfig as BaseConfig # type: ignore[assignment] - from .v1 import BaseModel as BaseModel # type: ignore[assignment] - from .v1 import Color as Color # type: ignore[assignment] - from .v1 import CoreSchema as CoreSchema # type: ignore[assignment] - from .v1 import ErrorWrapper as ErrorWrapper # type: ignore[assignment] - from .v1 import FieldInfo as FieldInfo # type: ignore[assignment] + from .v1 import AnyUrl as AnyUrl + from .v1 import BaseConfig as BaseConfig + from .v1 import BaseModel as BaseModel + from .v1 import Color as Color + from .v1 import CoreSchema as CoreSchema + from .v1 import ErrorWrapper as ErrorWrapper + from .v1 import FieldInfo as FieldInfo from .v1 import GetJsonSchemaHandler as GetJsonSchemaHandler # type: ignore[assignment] - from .v1 import JsonSchemaValue as JsonSchemaValue # type: ignore[assignment] + from .v1 import JsonSchemaValue as JsonSchemaValue from .v1 import ModelField # type: ignore[assignment] - from .v1 import NameEmail as NameEmail # type: ignore[assignment] + from .v1 import NameEmail as NameEmail from .v1 import RequiredParam as RequiredParam # type: ignore[assignment] - from .v1 import SecretBytes as SecretBytes # type: ignore[assignment] + from .v1 import SecretBytes as SecretBytes from .v1 import SecretStr as SecretStr # type: ignore[assignment] - from .v1 import Undefined as Undefined # type: ignore[assignment] - from .v1 import UndefinedType as UndefinedType # type: ignore[assignment] - from .v1 import Url as Url # type: ignore[assignment] - from .v1 import get_definitions # type: ignore[assignment] - from .v1 import _normalize_errors as _normalize_errors # type: ignore[assignment] - from .v1 import _regenerate_error_with_loc # type: ignore[assignment] + from .v1 import Undefined as Undefined + from .v1 import UndefinedType as UndefinedType + from .v1 import Url as Url + from .v1 import get_definitions + from .v1 import _normalize_errors as _normalize_errors + from .v1 import _regenerate_error_with_loc