Skip to content

Commit 5935199

Browse files
committed
Update docs for response-model
1 parent a82c3fe commit 5935199

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/tutorial/fastapi/response-model.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ For example, we can pass the same `Hero` **SQLModel** class (because it is also
3636

3737
## List of Heroes in `response_model`
3838

39-
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.
39+
We can also use other type annotations, the same way we can use with Pydantic fields.
4040

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

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

0 commit comments

Comments
 (0)