diff --git a/fastapi/_compat.py b/fastapi/_compat.py index 78a6872c6..31bcecfab 100644 --- a/fastapi/_compat.py +++ b/fastapi/_compat.py @@ -520,7 +520,7 @@ else: def serialize_sequence_value(*, field: ModelField, value: Any) -> Sequence[Any]: return sequence_shape_to_type[field.shape](value) # type: ignore[no-any-return,attr-defined] - def get_missing_field_error(loc: Tuple[str, ...]) -> Dict[str, Any]: + def get_missing_field_error(loc: Tuple[str, ...]) -> Dict[str, Any]: # type: ignore[misc] missing_field_error = ErrorWrapper(MissingError(), loc=loc) # type: ignore[call-arg] new_error = ValidationError([missing_field_error], RequestErrorModel) return new_error.errors()[0] # type: ignore[return-value]