Closed ilirium closed 4 years ago
The plugin uses dmypy run
, do you see no errors when you run dmypy run --follow-imports=error simple.py
on command line? If no, then maybe you have some tricky virtual environment situation? I remember I had problems with editable installations (the -e
flag) so I would not recommend using it unless you really need it. If you do need it, you can try playing with adding something to PATH suffix
(right click in plugin window -> Configure plugin...)
Oh, sorry, it is just the "try to reboot your computer" error :) I've restarted the editor and the error was gone (technically, to solve this error I suppose will be enough to run dmypy restart
in a project dir).
The plugin does not recognize a stubs package and it raises the "No library stub file for module" error, however
mypy
rightly works.I installed the stubs package from https://github.com/numpy/numpy-stubs: 1)
$ git clone https://github.com/numpy/numpy-stubs
2)$ pip install -e numpy-stubs
3) Then I tried to check the next script:
4) Error:
5) Use
mypy
to check:$ mypy --follow-imports=error simple.py
6) Output:
simple.py:5: error: Too few arguments for "array"
My environment: