]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
Fix tags's declare 2054/head
authorhitrust <hitrust@outlook.com>
Tue, 15 Sep 2020 06:40:49 +0000 (14:40 +0800)
committerGitHub <noreply@github.com>
Tue, 15 Sep 2020 06:40:49 +0000 (14:40 +0800)
docs_src/body_nested_models/tutorial005.py

index 0c076d4f9fa177548b56a6c4d79048b33c65f3ef..e76498c3b6f093077378cfb3f960f8fb9c8171d7 100644 (file)
@@ -16,7 +16,7 @@ class Item(BaseModel):
     description: Optional[str] = None
     price: float
     tax: Optional[float] = None
-    tags: Set[str] = []
+    tags: Set[str] = set()
     image: Optional[Image] = None