Skip to content

Commit

Permalink
Remove unused suppressions
Browse files Browse the repository at this point in the history
  • Loading branch information
tamird committed May 7, 2024
1 parent e04d397 commit 25a8af6
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions fastapi/_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
)
except ImportError: # pragma: no cover
from pydantic_core.core_schema import (
general_plain_validator_function as with_info_plain_validator_function, # noqa: F401
general_plain_validator_function as with_info_plain_validator_function,
)

Required = PydanticUndefined
Expand Down Expand Up @@ -283,14 +283,14 @@ def create_body_model(
from fastapi.openapi.constants import REF_PREFIX as REF_PREFIX
from pydantic import AnyUrl as Url # noqa: F401
from pydantic import ( # type: ignore[assignment]
BaseConfig as BaseConfig, # noqa: F401
BaseConfig as BaseConfig,
)
from pydantic import ValidationError as ValidationError # noqa: F401
from pydantic import ValidationError as ValidationError
from pydantic.class_validators import ( # type: ignore[no-redef]
Validator as Validator, # noqa: F401
Validator as Validator,
)
from pydantic.error_wrappers import ( # type: ignore[no-redef]
ErrorWrapper as ErrorWrapper, # noqa: F401
ErrorWrapper as ErrorWrapper,
)
from pydantic.errors import MissingError
from pydantic.fields import ( # type: ignore[attr-defined]
Expand All @@ -304,31 +304,31 @@ def create_body_model(
)
from pydantic.fields import FieldInfo as FieldInfo
from pydantic.fields import ( # type: ignore[no-redef,attr-defined]
ModelField as ModelField, # noqa: F401
ModelField as ModelField,
)
from pydantic.fields import ( # type: ignore[no-redef,attr-defined]
Required as Required, # noqa: F401
Required as Required,
)
from pydantic.fields import ( # type: ignore[no-redef,attr-defined]
Undefined as Undefined,
)
from pydantic.fields import ( # type: ignore[no-redef, attr-defined]
UndefinedType as UndefinedType, # noqa: F401
UndefinedType as UndefinedType,
)
from pydantic.schema import (
field_schema,
get_flat_models_from_fields,
get_model_name_map,
model_process_schema,
)
from pydantic.schema import ( # type: ignore[no-redef] # noqa: F401
from pydantic.schema import ( # type: ignore[no-redef]
get_annotation_from_field_info as get_annotation_from_field_info,
)
from pydantic.typing import ( # type: ignore[no-redef]
evaluate_forwardref as evaluate_forwardref, # noqa: F401
evaluate_forwardref as evaluate_forwardref,
)
from pydantic.utils import ( # type: ignore[no-redef]
lenient_issubclass as lenient_issubclass, # noqa: F401
lenient_issubclass as lenient_issubclass,
)

GetJsonSchemaHandler = Any # type: ignore[assignment,misc]
Expand Down

0 comments on commit 25a8af6

Please sign in to comment.