1 2 3 4 5 6 7 8 9
cimport cython ctypedef fused NotInPy: int float cdef class TestCls: @cython.locals(loc = NotInPy) cpdef cpfunc(self, NotInPy arg)