Skip to content

Commit

Permalink
♻ Change a dict() for {} in fastapi/utils.py (#3138)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShahriyarR committed Aug 26, 2022
1 parent ae56590 commit 00bdf53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastapi/utils.py
Expand Up @@ -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__
Expand Down

0 comments on commit 00bdf53

Please sign in to comment.