I want to create a simple class with the cdef statement, but it shows me a SyntaxError.
cdef class MyClass:
pass

This is my self-written cy-compile script. Yes, I’m sure the script is not causing the problem.
What the heck is wrong here ?!
Thanks 🙂
EDIT:
My file was name .py and not .pyx and this caused the error. shame on me
The suffix was
.pyand not.pyxand this caused the error.