summaryrefslogtreecommitdiff
path: root/docs/examples/tutorial/pure/exceptval.py
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples/tutorial/pure/exceptval.py')
-rw-r--r--docs/examples/tutorial/pure/exceptval.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/examples/tutorial/pure/exceptval.py b/docs/examples/tutorial/pure/exceptval.py
index 8bf564040..3d991f7c1 100644
--- a/docs/examples/tutorial/pure/exceptval.py
+++ b/docs/examples/tutorial/pure/exceptval.py
@@ -1,7 +1,7 @@
-import cython
-
-@cython.exceptval(-1)
-def func(x: cython.int) -> cython.int:
- if x < 0:
- raise ValueError("need integer >= 0")
- return x + 1
+import cython
+
+@cython.exceptval(-1)
+def func(x: cython.int) -> cython.int:
+ if x < 0:
+ raise ValueError("need integer >= 0")
+ return x + 1