Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overloads signatures #26

Closed
AmjadHD opened this issue Sep 29, 2019 · 3 comments
Closed

Overloads signatures #26

AmjadHD opened this issue Sep 29, 2019 · 3 comments

Comments

@AmjadHD
Copy link
Contributor

AmjadHD commented Sep 29, 2019

@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
Copy link
Owner

tomv564 commented Sep 30, 2019

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
Copy link
Owner

tomv564 commented Sep 30, 2019

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

@AmjadHD
Copy link
Contributor Author

AmjadHD commented Oct 1, 2019

OK I opened an issue there palantir/python-language-server#664

@AmjadHD AmjadHD closed this as completed Oct 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants