From 58ed8150e1198f59a87f54d3889ef3c5486ca19a Mon Sep 17 00:00:00 2001 From: JONEMI19 Date: Sat, 8 Jul 2023 11:55:58 +0000 Subject: [PATCH] added type ignore --- fastapi/_compat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastapi/_compat.py b/fastapi/_compat.py index 9aad9196b..7efab007a 100644 --- a/fastapi/_compat.py +++ b/fastapi/_compat.py @@ -424,7 +424,7 @@ else: if (field.shape in mapping_shapes) and not lenient_issubclass( # type: ignore[attr-defined] field.type_, BaseModel ): - if field.sub_fields is not None: + if field.sub_fields is not None: # type: ignore[attr-defined] for sub_field in field.sub_fields: # type: ignore[attr-defined] if not is_scalar_field(sub_field): return False