cython/cython — pull request #205 by vmx (2013-04-04 16:04:51+00:00)
Title: Add __eq__ to enum type

If a function declaration contained an enum, there were
false warnings regarding the function signature when the
pxd file was compiled with Cython (the warnings don't
appear if the pxd file gets cimported in a pyx file).

The warning is:
Function signature does not match previous declaration

It can be tested manually with a pxd file with the following
contents:

cdef extern from *:
ctypedef enum MyEnum:
Value1

MyEnum f()

I haven't found a way to write a test case. I don't know how to compile pxd files (without a pyx file) within the current test suite.