Skip to content

[lsp] Seeing signatures that contain -> None when constructing a class is confusing #1805

@rchen152

Description

@rchen152

See screenshots. If I'm constructing a class or hovering over the name of a class with a custom __init__ method, I see the __init__ signature, which is really nice, but the -> None at the end confused me the first time I saw it, because I thought it was saying that the constructor call returned None. It would be nice if we could replace the None with the class name for display.

Image Image

Metadata

Metadata

Assignees

Labels

good first issueGood for newcomerslanguage-serverIssues specific to our IDE integration rather than type checking

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions