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
from cython cimport fused_type cdef fused Num: int float cpdef num_func(Num x)
produces a Cython compiler error, and follow codes can be a workaround:
from cython cimport fused_type Num = fused_type(int, float) cpdef num_func(Num x)
Post it here for it could be helpful for many, and no doubt can be regarded as a bug.