♻ Change a dict() for {} in fastapi/utils.py (#3138)

This commit is contained in:
Shahriyar Rzayev authored and GitHub committed 2022-08-26 15:23:25 +02:00
1 parent ae56590c51
commit 00bdf533ef
1 file changed
+1 -1
+1 -1
View File
@@ -87,7 +87,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__