Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Handle calls on classes for signature help#1107

Merged
jakebailey merged 1 commit intomicrosoft:masterfrom
jakebailey:fix-983
May 21, 2019
Merged

Handle calls on classes for signature help#1107
jakebailey merged 1 commit intomicrosoft:masterfrom
jakebailey:fix-983

Conversation

@jakebailey
Copy link
Copy Markdown
Member

Fixes #983.
See also #982 (will need to do the same name passthrough for completion and hover).

When the lookup happened and the call target evaluated to a class type, the help would return early, since a class type is not a function type. Now, if it's a class type, then __init__ is fetched instead.

Also, take the chance to pass down the "real" name of the call to the tooltip.

@jakebailey jakebailey merged commit f3ffe2c into microsoft:master May 21, 2019
@jakebailey jakebailey deleted the fix-983 branch May 21, 2019 03:44
jakebailey added a commit to jakebailey/python-language-server that referenced this pull request Nov 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Class construction should show arguments from __init__

2 participants