Pycharm not indexing Cython functions implemented and compiled in my project

Viewed 10

Pretty all lies in the title ! I have a cython file : subdir/my_cython_fun.pyx containing a cdef function called my_cython_fun. It is cythonized with the -in-place argument, so the my_cython_fun.cpython-39-x86_64-linux-gnu.so library is in the same directory as the my_cython_fun.pyx file.

I'm importing the function using the following syntax: from subdir import my_cython_fun and calling it using my_cython_fun.my_cython_fun(...)

In the pycharm console, the function is importing nicely, and is working as expected. However in any script, I got the import line highlighted with the following error:

Cannot find reference my_cython_fun in __init__()

It is still importing without problem when I run the script.

Any clues ?

0 Answers
Related