-
Notifications
You must be signed in to change notification settings - Fork 284
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 signature #664
Comments
I don't understand what the current and expected behaviors are. Please clarify. |
He probably refers to https://docs.python.org/3/library/typing.html#typing.overload. |
I have three files located in one folder: def add(x, y):
return x + y mod.pyi: from typing import overload
@overload
def add(x: int, y: int) -> int: ...
@overload
def add(x: int, y: float) -> float: ... and test.py: from mod import add
add( when I type
you can see that |
The spec says:
So it's an option, not a requirement to send multiple signatures. Mypy is not the right tool for this, it is built for type checking entire documents, not "tell me about the thing on line 50" queries. Jedi is the library used for signature help, and it did add support for stubs in a release last summer - I think they skipped support for overloads. See: davidhalter/jedi#839 |
yes I know it's an option this is a feature request not a bug report
so should this be opened in the jedi repo ? |
Yes. This can't be solved here. |
can pyls be modified send multiple signatures in this case ?
The text was updated successfully, but these errors were encountered: