Skip to content

Display of overloaded definitions #102

@dhruvmanila

Description

@dhruvmanila

Currently, an overloaded definition is displayed using the following format:

Overload[<signature of overload 1>, <signature of overload 2>, ...]

For example:

Overload[() -> None, (x: int) -> int]

The main use cases are reveal_type, error messages (?), hover implementation in the language server.

This issue is to keep track of whether we want to improve the display and if so then how?

There was some discussion over at astral-sh/ruff#17294 (comment).

Metadata

Metadata

Assignees

No one assigned

    Labels

    diagnosticsRelated to reporting of diagnostics.needs-designNeeds further design before implementationoverloads

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions