From: hitrust Date: Thu, 5 Nov 2020 21:41:45 +0000 (+0800) Subject: 📝 Fix example code with sets in Tutorial - Body - Nested Models 2 (#2053) X-Git-Tag: 0.61.2~38 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c041c52d9122ce666b7b1935d5c7011b03830560;p=thirdparty%2Ffastapi%2Ffastapi.git 📝 Fix example code with sets in Tutorial - Body - Nested Models 2 (#2053) --- diff --git a/docs_src/body_nested_models/tutorial006.py b/docs_src/body_nested_models/tutorial006.py index 1d2b4ce470..da78367153 100644 --- a/docs_src/body_nested_models/tutorial006.py +++ b/docs_src/body_nested_models/tutorial006.py @@ -16,7 +16,7 @@ class Item(BaseModel): description: Optional[str] = None price: float tax: Optional[float] = None - tags: Set[str] = [] + tags: Set[str] = set() images: Optional[List[Image]] = None