summaryrefslogtreecommitdiff
path: root/docs/examples/tutorial/cdef_classes/sin_of_square.pyx
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples/tutorial/cdef_classes/sin_of_square.pyx')
-rw-r--r--docs/examples/tutorial/cdef_classes/sin_of_square.pyx22
1 files changed, 13 insertions, 9 deletions
diff --git a/docs/examples/tutorial/cdef_classes/sin_of_square.pyx b/docs/examples/tutorial/cdef_classes/sin_of_square.pyx
index 7aab96056..67af294b5 100644
--- a/docs/examples/tutorial/cdef_classes/sin_of_square.pyx
+++ b/docs/examples/tutorial/cdef_classes/sin_of_square.pyx
@@ -1,9 +1,13 @@
-from libc.math cimport sin
-
-cdef class Function:
- cpdef double evaluate(self, double x) except *:
- return 0
-
-cdef class SinOfSquareFunction(Function):
- cpdef double evaluate(self, double x) except *:
- return sin(x ** 2)
+from libc.math cimport sin
+
+
+cdef class Function:
+
+ cpdef double evaluate(self, double x) except *:
+ return 0
+
+
+cdef class SinOfSquareFunction(Function):
+
+ cpdef double evaluate(self, double x) except *:
+ return sin(x ** 2)