Skip to content

Commit b1025d2

Browse files
committed
update docs to new format
1 parent 3d967ca commit b1025d2

1 file changed

Lines changed: 5 additions & 57 deletions

File tree

docs/tutorial/parameter-types/pydantic-types.md

Lines changed: 5 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -26,64 +26,12 @@ Successfully installed pydantic, email-validator
2626

2727
You can then use them as parameter types.
2828

29-
=== "Python 3.7+ Argument"
29+
{* docs_src/parameter_types/pydantic_types/tutorial001_an.py hl[5] *}
3030

31-
```Python hl_lines="5"
32-
{!> ../docs_src/parameter_types/pydantic_types/tutorial001_an.py!}
33-
```
31+
{* docs_src/parameter_types/pydantic_types/tutorial002_an.py hl[5] *}
3432

35-
=== "Python 3.7+ Argument non-Annotated"
33+
These types are also supported in lists or tuples:
3634

37-
!!! tip
38-
Prefer to use the `Annotated` version if possible.
35+
{* docs_src/parameter_types/pydantic_types/tutorial003_an.py hl[6] *}
3936

40-
```Python hl_lines="4"
41-
{!> ../docs_src/parameter_types/pydantic_types/tutorial001.py!}
42-
```
43-
44-
=== "Python 3.7+ Option"
45-
46-
```Python hl_lines="5"
47-
{!> ../docs_src/parameter_types/pydantic_types/tutorial002_an.py!}
48-
```
49-
50-
=== "Python 3.7+ Option non-Annotated"
51-
52-
!!! tip
53-
Prefer to use the `Annotated` version if possible.
54-
55-
```Python hl_lines="4"
56-
{!> ../docs_src/parameter_types/pydantic_types/tutorial002.py!}
57-
```
58-
59-
These types are also supported in lists or tuples
60-
61-
=== "Python 3.7+ list"
62-
63-
```Python hl_lines="6"
64-
{!> ../docs_src/parameter_types/pydantic_types/tutorial003_an.py!}
65-
```
66-
67-
=== "Python 3.7+ list non-Annotated"
68-
69-
!!! tip
70-
Prefer to use the `Annotated` version if possible.
71-
72-
```Python hl_lines="5"
73-
{!> ../docs_src/parameter_types/pydantic_types/tutorial003.py!}
74-
```
75-
76-
=== "Python 3.7+ tuple"
77-
78-
```Python hl_lines="6"
79-
{!> ../docs_src/parameter_types/pydantic_types/tutorial004_an.py!}
80-
```
81-
82-
=== "Python 3.7+ tuple non-Annotated"
83-
84-
!!! tip
85-
Prefer to use the `Annotated` version if possible.
86-
87-
```Python hl_lines="5"
88-
{!> ../docs_src/parameter_types/pydantic_types/tutorial004.py!}
89-
```
37+
{* docs_src/parameter_types/pydantic_types/tutorial004_an.py hl[6] *}

0 commit comments

Comments
 (0)