From 8f737f77e26185f3ad4183c3cd1957cb2d08ebb1 Mon Sep 17 00:00:00 2001 From: Shahriyar Rzayev Date: Thu, 29 Apr 2021 09:59:58 +0400 Subject: [PATCH] Replaced dict() call with direct {} usage --- fastapi/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastapi/utils.py b/fastapi/utils.py index 8913d85b2dc40..17528210106b0 100644 --- a/fastapi/utils.py +++ b/fastapi/utils.py @@ -76,7 +76,7 @@ def create_cloned_field( ) -> ModelField: # _cloned_types has already cloned types, to support recursive models if cloned_types is None: - cloned_types = dict() + cloned_types = {} original_type = field.type_ if is_dataclass(original_type) and hasattr(original_type, "__pydantic_model__"): original_type = original_type.__pydantic_model__