mirror of
https://github.com/fastapi/fastapi.git
synced 2026-02-26 19:57:59 -05:00
📝 Tweak tip recommending Annotated in docs (#9270)
📝 Tweak tip recommending Annotated
This commit is contained in:
committed by
GitHub
parent
fbfd53542e
commit
0bc87ec77c
@@ -131,7 +131,7 @@ Both *path operations* require an `X-Token` header.
|
||||
=== "Python 3.10+ non-Annotated"
|
||||
|
||||
!!! tip
|
||||
Try to use the main, `Annotated` version better.
|
||||
Prefer to use the `Annotated` version if possible.
|
||||
|
||||
```Python
|
||||
{!> ../../../docs_src/app_testing/app_b_py310/main.py!}
|
||||
@@ -140,7 +140,7 @@ Both *path operations* require an `X-Token` header.
|
||||
=== "Python 3.6+ non-Annotated"
|
||||
|
||||
!!! tip
|
||||
Try to use the main, `Annotated` version better.
|
||||
Prefer to use the `Annotated` version if possible.
|
||||
|
||||
```Python
|
||||
{!> ../../../docs_src/app_testing/app_b/main.py!}
|
||||
|
||||
Reference in New Issue
Block a user