Skip to content

Commit 7285bd4

Browse files
committed
Fix how-to guide documentation references.
- Remove redundant Python 3.10 tabs from using_task_returns.md (3 instances) - Remove redundant Python 3.10 tabs from writing_custom_nodes.md (3 instances) - Rename Python 3.10+ tabs to Annotated in both files
1 parent 079f8f5 commit 7285bd4

File tree

2 files changed

+12
-57
lines changed

2 files changed

+12
-57
lines changed

docs/source/how_to_guides/using_task_returns.md

Lines changed: 6 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,14 @@ defines where the return of the function, a string, should be stored.
1818

1919
`````{tab-set}
2020
21-
````{tab-item} Python 3.10+
22-
:sync: python310plus
21+
````{tab-item} Annotated
22+
:sync: annotated
2323
2424
```{literalinclude} ../../../docs_src/how_to_guides/using_task_returns_example_1_py310.py
2525
```
2626
2727
````
2828
29-
````{tab-item} Python 3.10
30-
:sync: python38plus
31-
32-
```{literalinclude} ../../../docs_src/how_to_guides/using_task_returns_example_1_py38.py
33-
```
34-
35-
````
3629
`````
3730

3831
It works because internally the path is converted to a {class}`pytask.PathNode` that is
@@ -60,22 +53,14 @@ of the previous interfaces.
6053

6154
`````{tab-set}
6255
63-
````{tab-item} Python 3.10+
64-
:sync: python310plus
56+
````{tab-item} Annotated
57+
:sync: annotated
6558
6659
```{literalinclude} ../../../docs_src/how_to_guides/using_task_returns_example_3_py310.py
6760
```
6861
6962
````
7063
71-
````{tab-item} Python 3.10
72-
:sync: python38plus
73-
74-
```{literalinclude} ../../../docs_src/how_to_guides/using_task_returns_example_3_py38.py
75-
```
76-
77-
````
78-
7964
````{tab-item} @pytask.task
8065
8166
```{literalinclude} ../../../docs_src/how_to_guides/using_task_returns_example_3_task.py
@@ -95,22 +80,14 @@ mapped to the defined nodes.
9580

9681
`````{tab-set}
9782
98-
````{tab-item} Python 3.10+
99-
:sync: python310plus
83+
````{tab-item} Annotated
84+
:sync: annotated
10085
10186
```{literalinclude} ../../../docs_src/how_to_guides/using_task_returns_example_4_py310.py
10287
```
10388
10489
````
10590
106-
````{tab-item} Python 3.10
107-
:sync: python38plus
108-
109-
```{literalinclude} ../../../docs_src/how_to_guides/using_task_returns_example_4_py38.py
110-
```
111-
112-
````
113-
11491
````{tab-item} @pytask.task
11592
11693
```{literalinclude} ../../../docs_src/how_to_guides/using_task_returns_example_4_task.py

docs/source/how_to_guides/writing_custom_nodes.md

Lines changed: 6 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -26,37 +26,22 @@ The result will be the following task.
2626

2727
`````{tab-set}
2828
29-
````{tab-item} Python 3.10+
30-
:sync: python310plus
29+
````{tab-item} Annotated
30+
:sync: annotated
3131
3232
```{literalinclude} ../../../docs_src/how_to_guides/writing_custom_nodes_example_2_py310.py
3333
```
3434
3535
````
3636
37-
````{tab-item} Python 3.10+ & Return
38-
:sync: python310plus
37+
````{tab-item} Annotated & Return
38+
:sync: annotated
3939
4040
```{literalinclude} ../../../docs_src/how_to_guides/writing_custom_nodes_example_2_py310_return.py
4141
```
4242
4343
````
4444
45-
````{tab-item} Python 3.10
46-
:sync: python38plus
47-
48-
```{literalinclude} ../../../docs_src/how_to_guides/writing_custom_nodes_example_2_py38.py
49-
```
50-
51-
````
52-
53-
````{tab-item} Python 3.10 & Return
54-
:sync: python38plus
55-
56-
```{literalinclude} ../../../docs_src/how_to_guides/writing_custom_nodes_example_2_py38_return.py
57-
```
58-
59-
````
6045
`````
6146

6247
## Nodes
@@ -79,21 +64,14 @@ we arrive at the following class.
7964

8065
`````{tab-set}
8166
82-
````{tab-item} Python 3.10+
83-
:sync: python310plus
67+
````{tab-item} Annotated
68+
:sync: annotated
8469
8570
```{literalinclude} ../../../docs_src/how_to_guides/writing_custom_nodes_example_3_py310.py
8671
```
8772
8873
````
8974
90-
````{tab-item} Python 3.10
91-
:sync: python38plus
92-
93-
```{literalinclude} ../../../docs_src/how_to_guides/writing_custom_nodes_example_3_py38.py
94-
```
95-
96-
````
9775
`````
9876

9977
Here are some explanations.

0 commit comments

Comments
 (0)