Skip to content

Do not expand PEP-613 type aliases on hover #1883

@hamdanal

Description

@hamdanal

They could become unwieldy especially for large unions. See these two examples

Image Where the tuple is defined using a type alias in the stub and Image

Where the type of value is defines as Scalar | ListLikeU | None in pandas-stubs.

In both cases displaying the name of the type alias would make the signature more readable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions