Skip to content

Commit df1aa6b

Browse files
committed
add :tags: [raises-exception]
1 parent 6a18b34 commit df1aa6b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

notebooks/2_intro_functiontask.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ task1a()
128128
```
129129

130130
```{code-cell} ipython3
131+
:tags: [raises-exception]
131132
# This usage is incorrect according to static type hints:
132133
task1b = add(a="hello", b="world")
133134
task1b()
@@ -152,6 +153,7 @@ task1c()
152153
```
153154

154155
```{code-cell} ipython3
156+
:tags: [raises-exception]
155157
# This usage is incorrect and will raise a runtime TypeError:
156158
task1d = add(a="hello", b="world")
157159
task1d()
@@ -178,6 +180,7 @@ task1e()
178180
```
179181

180182
```{code-cell} ipython3
183+
:tags: [raises-exception]
181184
# This will raise a ValueError
182185
task1f = sum_of_pairs(pairs=[(1, 2), (3, "4")])
183186
task1f()

0 commit comments

Comments
 (0)