piskvorky/gensim

library stubs are missing

kkasra12 opened this issue · 1 comments

it seems gensim is missing library stubs.
mypy says: Cannot find implementation or library stub for module named "gensim" [import-not-found]

also I have tried typeshed (pip install types-gensim) but it wasn't available.

gojomo commented

Gensim has historically not tried to implement static typing or type hinting, so perhaps this is just expected behavior?

OTOH, this part of the mypy docs suggests this error can also occur if it just can't find Gensim at all: https://mypy.readthedocs.io/en/latest/running_mypy.html#missing-type-hints-for-third-party-library

In which case, seems like a not-Gensim error in your local config/Python-env?

How did you install Gensim, and can you use it separately without mypy being any part of the setup? Exactly what operations triggered the above error?