Skip to content

Commit

Permalink
šŸ“ Add note about Python 3.10 X | Y operator in explanation about Reā€¦
Browse files Browse the repository at this point in the history
ā€¦sponse Models (#5307)
  • Loading branch information
MendyLanda committed Sep 4, 2022
1 parent 198b7ef commit ae369d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/en/docs/tutorial/response-model.md
Expand Up @@ -168,7 +168,7 @@ Your response model could have default values, like:
{!> ../../../docs_src/response_model/tutorial004_py310.py!}
```

* `description: Union[str, None] = None` has a default of `None`.
* `description: Union[str, None] = None` (or `str | None = None` in Python 3.10) has a default of `None`.
* `tax: float = 10.5` has a default of `10.5`.
* `tags: List[str] = []` as a default of an empty list: `[]`.

Expand Down

0 comments on commit ae369d8

Please sign in to comment.