This is a known issue in Cython: https://github.com/cython/cython/issues/2747
Basically, Cython generates a suboptimal cast for the self object that it passes into a cdef function. The code is fine, it's just that the C compiler is unhappy seeing an extension type rather than its (compatible) base type.
This is a known issue in Cython: https:/ /github. com/cython/ cython/ issues/ 2747
Basically, Cython generates a suboptimal cast for the self object that it passes into a cdef function. The code is fine, it's just that the C compiler is unhappy seeing an extension type rather than its (compatible) base type.