matangover / mypyls

Mypy language server: runs mypy on Python code to provide type checking, go to definition, and hover.
MIT License
34 stars 5 forks source link

poetry add - version solving failed #7

Closed paolodina closed 3 years ago

paolodina commented 3 years ago

Hi, I installed the Mypy extension for VS Code and then tried to install the language server.

I guess it's a no, but would it be possible to unpin mypy dependency from mypy==0.782 to ^0.790?

$ poetry add "https://github.com/matangover/mypyls/archive/master.zip#egg=mypyls[default-mypy]"

Updating dependencies
Resolving dependencies... (23.1s)

  SolverProblemError

  Because tutorial depends on mypyls (0.2.3 url) which depends on mypy (0.782), mypy is required.
  So, because tutorial depends on mypy (^0.790), version solving failed.
matangover commented 3 years ago

You can use mypy 0.790 with mypyls. Just install mypyls without the [default-mypy] suffix. Let me know if there are any problems.

paolodina commented 3 years ago

Awesome it works, thank you very much.