From 99a41e7f8dc21bc0f076a20cd6c0e99dce5abcc1 Mon Sep 17 00:00:00 2001 From: hitrust Date: Thu, 12 May 2022 01:29:02 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=20Fix=20example=20code=20with=20sets?= =?UTF-8?q?=20in=20tutorial=20for=20body=20nested=20models=20(#3030)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Sebastián Ramírez --- docs_src/body_nested_models/tutorial004.py | 2 +- docs_src/body_nested_models/tutorial004_py310.py | 2 +- docs_src/body_nested_models/tutorial004_py39.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs_src/body_nested_models/tutorial004.py b/docs_src/body_nested_models/tutorial004.py index 6037b32b7..311a4e73f 100644 --- a/docs_src/body_nested_models/tutorial004.py +++ b/docs_src/body_nested_models/tutorial004.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() image: Optional[Image] = None diff --git a/docs_src/body_nested_models/tutorial004_py310.py b/docs_src/body_nested_models/tutorial004_py310.py index ab0b63db1..e5dbf6e0b 100644 --- a/docs_src/body_nested_models/tutorial004_py310.py +++ b/docs_src/body_nested_models/tutorial004_py310.py @@ -14,7 +14,7 @@ class Item(BaseModel): description: str | None = None price: float tax: float | None = None - tags: set[str] = [] + tags: set[str] = set() image: Image | None = None diff --git a/docs_src/body_nested_models/tutorial004_py39.py b/docs_src/body_nested_models/tutorial004_py39.py index 19985ec7a..ab05da023 100644 --- a/docs_src/body_nested_models/tutorial004_py39.py +++ b/docs_src/body_nested_models/tutorial004_py39.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() image: Optional[Image] = None