Skip to content

Commit 24c0e0b

Browse files
committed
syntax update
1 parent 893f8bd commit 24c0e0b

File tree

1 file changed

+1
-55
lines changed

1 file changed

+1
-55
lines changed

docs/tutorial/relationship-attributes/type-annotation-strings.md

Lines changed: 1 addition & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -2,61 +2,7 @@
22

33
In the first Relationship attribute, we declare it with `List["Hero"]`, putting the `Hero` in quotes instead of just normally there:
44

5-
//// tab | Python 3.10+
6-
7-
```Python hl_lines="9"
8-
{!./docs_src/tutorial/relationship_attributes/define_relationship_attributes/tutorial001_py310.py[ln:1-19]!}
9-
10-
# Code below omitted 👇
11-
```
12-
13-
////
14-
15-
//// tab | Python 3.9+
16-
17-
```Python hl_lines="11"
18-
{!./docs_src/tutorial/relationship_attributes/define_relationship_attributes/tutorial001_py39.py[ln:1-21]!}
19-
20-
# Code below omitted 👇
21-
```
22-
23-
////
24-
25-
//// tab | Python 3.7+
26-
27-
```Python hl_lines="11"
28-
{!./docs_src/tutorial/relationship_attributes/define_relationship_attributes/tutorial001.py[ln:1-21]!}
29-
30-
# Code below omitted 👇
31-
```
32-
33-
////
34-
35-
/// details | 👀 Full file preview
36-
37-
//// tab | Python 3.10+
38-
39-
```Python
40-
{!./docs_src/tutorial/relationship_attributes/define_relationship_attributes/tutorial001_py310.py!}
41-
```
42-
43-
////
44-
45-
//// tab | Python 3.9+
46-
47-
```Python
48-
{!./docs_src/tutorial/relationship_attributes/define_relationship_attributes/tutorial001_py39.py!}
49-
```
50-
51-
////
52-
53-
//// tab | Python 3.7+
54-
55-
```Python
56-
{!./docs_src/tutorial/relationship_attributes/define_relationship_attributes/tutorial001.py!}
57-
```
58-
59-
////
5+
{* ./docs_src/tutorial/relationship_attributes/define_relationship_attributes/tutorial001_py310.py ln[1:19] hl[9] *}
606

617
///
628

0 commit comments

Comments
 (0)