tomv564 / pyls-mypy

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

Fix mypy==0.700 compatibility. #21

Closed singulared closed 5 years ago

singulared commented 5 years ago

mypy.api.run method should take List[str] of args. https://docs.python.org/3/library/argparse.html#argparse.ArgumentParser.parse_args https://github.com/python/mypy/blob/d40990f5b91b1f06918222d1041441b7ff63f79a/mypy/api.py#L71

tomv564 commented 5 years ago

Thanks! Unsure how this stopped working in 0.700?

singulared commented 5 years ago

I didn't investigate this but running pyls with python 3.7.3 and mypy 0.700 produce list object expected error on initialization. With mypy==0.670 initialization pass correctly.

tomv564 commented 5 years ago

Now released in 1.6.0