How go I get mypy to handle Cython extensions? I have some #Cython modules in #P...
Andrew Dalke @dalke@toots.nu
How go I get mypy to handle Cython extensions?
I have some #Cython modules in #Python package. I would like to use #mypy for type checking. I get error messages like:
chemfp/highlevel/clustering.py:30: error: Cannot find implementation or library stub for module named "chemfp.clustering" [import-not-found]
Line 30 is:
from ..clustering import _InvalidMatrix as InvalidMatrix
where chemfp.clustering is a Cython extension, which has been compiled and is available for import.