Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Implicitly returning None not understood as valid memory view return type #3245
A function with a return type declared as a memory view (e.g.
cdef double[:] func(): return None
cdef double[:] func(): return
and generates an error on cythonization stating
Of course this is no biggy, but it would be nice to allow the implicit syntax as well.
Implicitly returning None from a function that is declared to return something always smells like a potential bug to me, even though it's valid Python. Would be nice to keep this at least as a normal priority warning, but I'd accept a PR that fixes the compile error.