Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/tutorial/fastapi/response-model.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ For example, we can pass the same `Hero` **SQLModel** class (because it is also

## List of Heroes in `response_model`

We can also use other type annotations, the same way we can use with Pydantic fields. For example, we can pass a list of `Hero`s.
We can also use other type annotations, the same way we can use with Pydantic fields.

First, we import `List` from `typing` and then we declare the `response_model` with `List[Hero]`:
For example, we can pass a list of `Hero`s to `response_model`.
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved For example, ... to new line like L33 for consistency.


{* ./docs_src/tutorial/fastapi/response_model/tutorial001_py310.py ln[40:44] hl[40] *}

Expand Down