Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pxd support of fused types #3204

Open
thautwarm opened this issue Oct 24, 2019 · 0 comments

Comments

@thautwarm
Copy link

@thautwarm thautwarm commented Oct 24, 2019

Currently, while

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.