mirror of https://github.com/tiangolo/fastapi.git
chore: add trans for non-annotated
This commit is contained in:
parent
07b7ae55a6
commit
f3e7bbfab9
|
|
@ -35,7 +35,7 @@ HTTP 基础授权让浏览器显示内置的用户名与密码提示。
|
|||
=== "Python 3.8+ non-Annotated"
|
||||
|
||||
!!! tip
|
||||
Prefer to use the `Annotated` version if possible.
|
||||
尽可能选择使用 `Annotated` 的版本。
|
||||
|
||||
```Python hl_lines="2 6 10"
|
||||
{!> ../../../docs_src/security/tutorial006.py!}
|
||||
|
|
@ -74,7 +74,7 @@ HTTP 基础授权让浏览器显示内置的用户名与密码提示。
|
|||
=== "Python 3.8+ non-Annotated"
|
||||
|
||||
!!! tip
|
||||
Prefer to use the `Annotated` version if possible.
|
||||
尽可能选择使用 `Annotated` 的版本。
|
||||
|
||||
```Python hl_lines="1 11-21"
|
||||
{!> ../../../docs_src/security/tutorial007.py!}
|
||||
|
|
@ -156,7 +156,7 @@ if "stanleyjobsox" == "stanleyjobson" and "love123" == "swordfish":
|
|||
=== "Python 3.8+ non-Annotated"
|
||||
|
||||
!!! tip
|
||||
Prefer to use the `Annotated` version if possible.
|
||||
尽可能选择使用 `Annotated` 的版本。
|
||||
|
||||
```Python hl_lines="23-27"
|
||||
{!> ../../../docs_src/security/tutorial007.py!}
|
||||
|
|
|
|||
Loading…
Reference in New Issue