From c24441928596b21b922d683fa4458b0f5d9991b7 Mon Sep 17 00:00:00 2001 From: Kinuax Date: Thu, 1 May 2025 14:57:32 +0200 Subject: [PATCH] Fix linting --- fastapi/_compat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]