tomv564 / pyls-mypy

Mypy plugin for the Python Language Server
MIT License
110 stars 62 forks source link

support live mode with relative imports #18

Closed gdiv closed 2 years ago

gdiv commented 5 years ago

When using pyls-mypy live mode, currently only the source code of the file gets passed to mypy. This doesn't play well with trying to check files with relative imports as mypy does not know the path of the code. This patch fixes the issue by