=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="2 23"
{!> ../../../docs_src/additional_status_codes/tutorial001_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="4 25"
{!> ../../../docs_src/additional_status_codes/tutorial001.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="10"
{!> ../../../docs_src/dependencies/tutorial011.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="7"
{!> ../../../docs_src/dependencies/tutorial011.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="16"
{!> ../../../docs_src/dependencies/tutorial011.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="20"
{!> ../../../docs_src/dependencies/tutorial011.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="2 6 10"
{!> ../../../docs_src/security/tutorial006.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="1 11-21"
{!> ../../../docs_src/security/tutorial007.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="23-27"
{!> ../../../docs_src/security/tutorial007.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="3 7 11 45 63 104 106-114 120-123 127-133 138 152"
{!> ../../../docs_src/security/tutorial005_py310.py!}
=== "Python 3.9+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="2 4 8 12 46 64 105 107-115 121-124 128-134 139 153"
{!> ../../../docs_src/security/tutorial005_py39.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="2 4 8 12 46 64 105 107-115 121-124 128-134 139 153"
{!> ../../../docs_src/security/tutorial005.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="61-64"
{!> ../../../docs_src/security/tutorial005_py310.py!}
=== "Python 3.9+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="62-65"
{!> ../../../docs_src/security/tutorial005_py39.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="62-65"
{!> ../../../docs_src/security/tutorial005.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="152"
{!> ../../../docs_src/security/tutorial005_py310.py!}
=== "Python 3.9+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="153"
{!> ../../../docs_src/security/tutorial005_py39.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="153"
{!> ../../../docs_src/security/tutorial005.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="3 138 165"
{!> ../../../docs_src/security/tutorial005_py310.py!}
=== "Python 3.9+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="4 139 166"
{!> ../../../docs_src/security/tutorial005_py39.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="4 139 166"
{!> ../../../docs_src/security/tutorial005.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="7 104"
{!> ../../../docs_src/security/tutorial005_py310.py!}
=== "Python 3.9+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="8 105"
{!> ../../../docs_src/security/tutorial005_py39.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="8 105"
{!> ../../../docs_src/security/tutorial005.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="104 106-114"
{!> ../../../docs_src/security/tutorial005_py310.py!}
=== "Python 3.9+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="105 107-115"
{!> ../../../docs_src/security/tutorial005_py39.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="105 107-115"
{!> ../../../docs_src/security/tutorial005.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="45 115-126"
{!> ../../../docs_src/security/tutorial005_py310.py!}
=== "Python 3.9+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="46 116-127"
{!> ../../../docs_src/security/tutorial005_py39.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="46 116-127"
{!> ../../../docs_src/security/tutorial005.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="127-133"
{!> ../../../docs_src/security/tutorial005_py310.py!}
=== "Python 3.9+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="128-134"
{!> ../../../docs_src/security/tutorial005_py39.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="128-134"
{!> ../../../docs_src/security/tutorial005.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="5 11-12"
{!> ../../../docs_src/settings/app02/main.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="16 18-20"
{!> ../../../docs_src/settings/app02/main.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="1 10"
{!> ../../../docs_src/settings/app03/main.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="24-25 28"
{!> ../../../docs_src/dependency_testing/tutorial001_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="28-29 32"
{!> ../../../docs_src/dependency_testing/tutorial001.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="66-67 79"
{!> ../../../docs_src/websockets/tutorial002_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="68-69 81"
{!> ../../../docs_src/websockets/tutorial002.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="11 13 20 23"
{!> ../../../docs_src/background_tasks/tutorial002_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="13 15 22 25"
{!> ../../../docs_src/background_tasks/tutorial002.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="1 4-6"
{!> ../../../docs_src/bigger_applications/app/dependencies.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="2"
{!> ../../../docs_src/body_fields/tutorial001_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="4"
{!> ../../../docs_src/body_fields/tutorial001.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="9-12"
{!> ../../../docs_src/body_fields/tutorial001_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="11-14"
{!> ../../../docs_src/body_fields/tutorial001.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="17-19"
{!> ../../../docs_src/body_multiple_params/tutorial001_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="19-21"
{!> ../../../docs_src/body_multiple_params/tutorial001.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="20"
{!> ../../../docs_src/body_multiple_params/tutorial003_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="22"
{!> ../../../docs_src/body_multiple_params/tutorial003.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="25"
{!> ../../../docs_src/body_multiple_params/tutorial004_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="27"
{!> ../../../docs_src/body_multiple_params/tutorial004.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="15"
{!> ../../../docs_src/body_multiple_params/tutorial005_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="17"
{!> ../../../docs_src/body_multiple_params/tutorial005.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="1"
{!> ../../../docs_src/cookie_params/tutorial001_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="3"
{!> ../../../docs_src/cookie_params/tutorial001.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="7"
{!> ../../../docs_src/cookie_params/tutorial001_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="9"
{!> ../../../docs_src/cookie_params/tutorial001.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="7"
{!> ../../../docs_src/dependencies/tutorial001_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="11"
{!> ../../../docs_src/dependencies/tutorial001.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="9-13"
{!> ../../../docs_src/dependencies/tutorial002_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="11-15"
{!> ../../../docs_src/dependencies/tutorial002.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="10"
{!> ../../../docs_src/dependencies/tutorial002_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="12"
{!> ../../../docs_src/dependencies/tutorial002.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="6"
{!> ../../../docs_src/dependencies/tutorial001_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="9"
{!> ../../../docs_src/dependencies/tutorial001.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="17"
{!> ../../../docs_src/dependencies/tutorial002_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="19"
{!> ../../../docs_src/dependencies/tutorial002.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python
commons: CommonQueryParams = Depends(CommonQueryParams)
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python
commons: CommonQueryParams ...
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python
commons = Depends(CommonQueryParams)
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="17"
{!> ../../../docs_src/dependencies/tutorial003_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="19"
{!> ../../../docs_src/dependencies/tutorial003.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python
commons: CommonQueryParams = Depends(CommonQueryParams)
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python
commons: CommonQueryParams = Depends(CommonQueryParams)
=== "Python 3.6 non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python
commons: CommonQueryParams = Depends()
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="17"
{!> ../../../docs_src/dependencies/tutorial004_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="19"
{!> ../../../docs_src/dependencies/tutorial004.py!}
=== "Python 3.6 non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="17"
{!> ../../../docs_src/dependencies/tutorial006.py!}
=== "Python 3.6 non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="6 11"
{!> ../../../docs_src/dependencies/tutorial006.py!}
=== "Python 3.6 non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="8 13"
{!> ../../../docs_src/dependencies/tutorial006.py!}
=== "Python 3.6 non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="9 14"
{!> ../../../docs_src/dependencies/tutorial006.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="4 12 20"
{!> ../../../docs_src/dependencies/tutorial008.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="16-17 24-25"
{!> ../../../docs_src/dependencies/tutorial008.py!}
=== "Python 3.6 non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="15"
{!> ../../../docs_src/dependencies/tutorial012.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="6-7"
{!> ../../../docs_src/dependencies/tutorial001_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="8-11"
{!> ../../../docs_src/dependencies/tutorial001.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="1"
{!> ../../../docs_src/dependencies/tutorial001_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="3"
{!> ../../../docs_src/dependencies/tutorial001.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="11 16"
{!> ../../../docs_src/dependencies/tutorial001_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="15 20"
{!> ../../../docs_src/dependencies/tutorial001.py!}
=== "Python 3.10 non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="6-7"
{!> ../../../docs_src/dependencies/tutorial005_py310.py!}
=== "Python 3.6 non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="8-9"
{!> ../../../docs_src/dependencies/tutorial005.py!}
=== "Python 3.10 non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="11"
{!> ../../../docs_src/dependencies/tutorial005_py310.py!}
=== "Python 3.6 non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="13"
{!> ../../../docs_src/dependencies/tutorial005.py!}
=== "Python 3.10 non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="19"
{!> ../../../docs_src/dependencies/tutorial005_py310.py!}
=== "Python 3.6 non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="22"
{!> ../../../docs_src/dependencies/tutorial005.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="1"
async def needy_dependency(fresh_value: str = Depends(get_value, use_cache=False)):
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="1 2 11-15"
{!> ../../../docs_src/extra_data_types/tutorial001_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="1 2 12-16"
{!> ../../../docs_src/extra_data_types/tutorial001.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="17-18"
{!> ../../../docs_src/extra_data_types/tutorial001_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="18-19"
{!> ../../../docs_src/extra_data_types/tutorial001.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="1"
{!> ../../../docs_src/header_params/tutorial001_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="3"
{!> ../../../docs_src/header_params/tutorial001.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="7"
{!> ../../../docs_src/header_params/tutorial001_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="9"
{!> ../../../docs_src/header_params/tutorial001.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="8"
{!> ../../../docs_src/header_params/tutorial002_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="10"
{!> ../../../docs_src/header_params/tutorial002.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="7"
{!> ../../../docs_src/header_params/tutorial003_py310.py!}
=== "Python 3.9+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="9"
{!> ../../../docs_src/header_params/tutorial003_py39.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="9"
{!> ../../../docs_src/header_params/tutorial003.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="1"
{!> ../../../docs_src/path_params_numeric_validations/tutorial001_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="3"
{!> ../../../docs_src/path_params_numeric_validations/tutorial001.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="8"
{!> ../../../docs_src/path_params_numeric_validations/tutorial001_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="10"
{!> ../../../docs_src/path_params_numeric_validations/tutorial001.py!}
=== "Python 3.6 non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="7"
{!> ../../../docs_src/path_params_numeric_validations/tutorial002.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="8"
{!> ../../../docs_src/path_params_numeric_validations/tutorial004.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="9"
{!> ../../../docs_src/path_params_numeric_validations/tutorial005.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="11"
{!> ../../../docs_src/path_params_numeric_validations/tutorial006.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="7"
{!> ../../../docs_src/query_params_str_validations/tutorial003_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="10"
{!> ../../../docs_src/query_params_str_validations/tutorial003.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="9"
{!> ../../../docs_src/query_params_str_validations/tutorial004_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="11"
{!> ../../../docs_src/query_params_str_validations/tutorial004.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="7"
{!> ../../../docs_src/query_params_str_validations/tutorial005.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="7"
{!> ../../../docs_src/query_params_str_validations/tutorial006.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="7"
{!> ../../../docs_src/query_params_str_validations/tutorial006b.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="7"
{!> ../../../docs_src/query_params_str_validations/tutorial006c_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="9"
{!> ../../../docs_src/query_params_str_validations/tutorial006c.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="2 8"
{!> ../../../docs_src/query_params_str_validations/tutorial006d.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="7"
{!> ../../../docs_src/query_params_str_validations/tutorial011_py310.py!}
=== "Python 3.9+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="9"
{!> ../../../docs_src/query_params_str_validations/tutorial011_py39.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="9"
{!> ../../../docs_src/query_params_str_validations/tutorial011.py!}
=== "Python 3.9+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="7"
{!> ../../../docs_src/query_params_str_validations/tutorial012_py39.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="9"
{!> ../../../docs_src/query_params_str_validations/tutorial012.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="7"
{!> ../../../docs_src/query_params_str_validations/tutorial013.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="8"
{!> ../../../docs_src/query_params_str_validations/tutorial007_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="10"
{!> ../../../docs_src/query_params_str_validations/tutorial007.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="12"
{!> ../../../docs_src/query_params_str_validations/tutorial008_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="13"
{!> ../../../docs_src/query_params_str_validations/tutorial008.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="7"
{!> ../../../docs_src/query_params_str_validations/tutorial009_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="9"
{!> ../../../docs_src/query_params_str_validations/tutorial009.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="17"
{!> ../../../docs_src/query_params_str_validations/tutorial010_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="18"
{!> ../../../docs_src/query_params_str_validations/tutorial010.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="8"
{!> ../../../docs_src/query_params_str_validations/tutorial014_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="10"
{!> ../../../docs_src/query_params_str_validations/tutorial014.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="1"
{!> ../../../docs_src/request_files/tutorial001.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="7"
{!> ../../../docs_src/request_files/tutorial001.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="12"
{!> ../../../docs_src/request_files/tutorial001.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="7 15"
{!> ../../../docs_src/request_files/tutorial001_02_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="9 17"
{!> ../../../docs_src/request_files/tutorial001_02.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="7 13"
{!> ../../../docs_src/request_files/tutorial001_03.py!}
=== "Python 3.9+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="8 13"
{!> ../../../docs_src/request_files/tutorial002_py39.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="10 15"
{!> ../../../docs_src/request_files/tutorial002.py!}
=== "Python 3.9+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="9 16"
{!> ../../../docs_src/request_files/tutorial003_py39.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="11 18"
{!> ../../../docs_src/request_files/tutorial003.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="1"
{!> ../../../docs_src/request_forms_and_files/tutorial001.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="8"
{!> ../../../docs_src/request_forms_and_files/tutorial001.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="1"
{!> ../../../docs_src/request_forms/tutorial001.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="7"
{!> ../../../docs_src/request_forms/tutorial001.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="20-25"
{!> ../../../docs_src/schema_extra_example/tutorial003.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="21-47"
{!> ../../../docs_src/schema_extra_example/tutorial004.py!}
=== "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/security/tutorial001.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="6"
{!> ../../../docs_src/security/tutorial001.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="10"
{!> ../../../docs_src/security/tutorial001.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="10"
{!> ../../../docs_src/security/tutorial001.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="3 10-14"
{!> ../../../docs_src/security/tutorial002_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="5 12-16"
{!> ../../../docs_src/security/tutorial002.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="23"
{!> ../../../docs_src/security/tutorial002_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="25"
{!> ../../../docs_src/security/tutorial002.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="17-20 24-25"
{!> ../../../docs_src/security/tutorial002_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="19-22 26-27"
{!> ../../../docs_src/security/tutorial002.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="29"
{!> ../../../docs_src/security/tutorial002_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="31"
{!> ../../../docs_src/security/tutorial002.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="28-30"
{!> ../../../docs_src/security/tutorial002_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="30-32"
{!> ../../../docs_src/security/tutorial002.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="6 47 54-55 58-59 68-74"
{!> ../../../docs_src/security/tutorial004_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="7 48 55-56 59-60 69-75"
{!> ../../../docs_src/security/tutorial004.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="5 11-13 27-29 77-85"
{!> ../../../docs_src/security/tutorial004_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="6 12-14 28-30 78-86"
{!> ../../../docs_src/security/tutorial004.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="88-105"
{!> ../../../docs_src/security/tutorial004_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="89-106"
{!> ../../../docs_src/security/tutorial004.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="114-127"
{!> ../../../docs_src/security/tutorial004_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="115-128"
{!> ../../../docs_src/security/tutorial004.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="2 74"
{!> ../../../docs_src/security/tutorial003_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="4 76"
{!> ../../../docs_src/security/tutorial003.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="1 75-77"
{!> ../../../docs_src/security/tutorial003_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="3 77-79"
{!> ../../../docs_src/security/tutorial003.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="78-81"
{!> ../../../docs_src/security/tutorial003_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="80-83"
{!> ../../../docs_src/security/tutorial003.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="83"
{!> ../../../docs_src/security/tutorial003_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="85"
{!> ../../../docs_src/security/tutorial003.py!}
=== "Python 3.10+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="56-64 67-70 88"
{!> ../../../docs_src/security/tutorial003_py310.py!}
=== "Python 3.6+ non-Annotated"
!!! tip
- Try to use the main, `Annotated` version better.
+ Prefer to use the `Annotated` version if possible.
```Python hl_lines="58-66 69-72 90"
{!> ../../../docs_src/security/tutorial003.py!}
=== "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!}
=== "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!}