]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
♻ Change a `dict()` for `{}` in `fastapi/utils.py` (#3138)
authorShahriyar Rzayev <rzayev.sehriyar@gmail.com>
Fri, 26 Aug 2022 13:23:25 +0000 (17:23 +0400)
committerGitHub <noreply@github.com>
Fri, 26 Aug 2022 13:23:25 +0000 (15:23 +0200)
fastapi/utils.py

index 0163fd95fc62cc9100970023890eb6a50cdc0793..b7da3e484240c04fcffbcf47221664c1a9b5c91f 100644 (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__