tomv564 / pyls-mypy

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

Overloads signatures #26

Closed AmjadHD closed 5 years ago

AmjadHD commented 5 years ago
@overload
def add(x: int, y:int) -> int: ...

@overload
def add(x: int, y: float) -> float: ...

def add(x, y):
    return x + y

can pyls-mypy be modified send multiple signatures in this case ?

tomv564 commented 5 years ago

What kind of output are you thinking of, completion, signature help? This plugin only handles diagnostics, the rest is all pyls. Does running “mypy” on this code give something that this plugin hides?

tomv564 commented 5 years ago

I’m guessing it’s pyls’s use of Jedi that you are after!

AmjadHD commented 5 years ago

OK I opened an issue there https://github.com/palantir/python-language-server/issues/664