Browse Source

✏ Fix example code with sets in tutorial for body nested models (#3030)

Co-authored-by: Sebastián Ramírez <[email protected]>
pull/4887/head
hitrust 3 years ago
committed by GitHub
parent
commit
99a41e7f8d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      docs_src/body_nested_models/tutorial004.py
  2. 2
      docs_src/body_nested_models/tutorial004_py310.py
  3. 2
      docs_src/body_nested_models/tutorial004_py39.py

2
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

2
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

2
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

Loading…
Cancel
Save