mirror of
https://github.com/fastapi/fastapi.git
synced 2026-04-16 04:53:11 -04:00
♻ Change a dict() for {} in fastapi/utils.py (#3138)
This commit is contained in:
@@ -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__
|
||||
|
||||
Reference in New Issue
Block a user