Can't figure out how to use #cython to define a reusable #python extension class.
In the .pxd
cdef class CountFingerprint:
cdef:
...
In the .pyx
from . import _typing
def _err(s):
return ValueError(s)
cdef class CountFingerprint:
def to_pandas(...) -> _typing.PDF:
..
raise _get_value_error(..)
cythonize says "Unknown type declaration '_typing.PDF' in annotation, ignoring" and "undeclared name not builtin: _get_err".
I don't get it. Those are defined in the .pyx.
Help?