Browse Source
📝 Fix code include for Pydantic models example in `docs/zh/docs/python-types.md` (#13997)
Updated the Pydantic expiration example in the Chinese documentation
pull/13536/merge
Mika
1 day ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
23 additions and
1 deletions
-
docs/zh/docs/python-types.md
|
|
@ -240,7 +240,29 @@ John Doe |
|
|
|
|
|
|
|
下面的例子来自 Pydantic 官方文档: |
|
|
|
|
|
|
|
{* ../../docs_src/python_types/tutorial010.py *} |
|
|
|
//// tab | Python 3.10+ |
|
|
|
|
|
|
|
```Python |
|
|
|
{!> ../../docs_src/python_types/tutorial011_py310.py!} |
|
|
|
``` |
|
|
|
|
|
|
|
//// |
|
|
|
|
|
|
|
//// tab | Python 3.9+ |
|
|
|
|
|
|
|
```Python |
|
|
|
{!> ../../docs_src/python_types/tutorial011_py39.py!} |
|
|
|
``` |
|
|
|
|
|
|
|
//// |
|
|
|
|
|
|
|
//// tab | Python 3.8+ |
|
|
|
|
|
|
|
```Python |
|
|
|
{!> ../../docs_src/python_types/tutorial011.py!} |
|
|
|
``` |
|
|
|
|
|
|
|
//// |
|
|
|
|
|
|
|
|
|
|
|
/// info |
|
|
|