Skip to content

Feat: Expand **kwargs with field names on hover when **kwargs is typed with Unpack (i.e. **kwargs: Unpack[T]) #758

@michaelfortunato

Description

@michaelfortunato

Say a function has a parameter **kwargs and its typed with Unpack. On hover it would be nice if **kwargs was replaced with the actual argument names and their types.

For instance, in the screenshot below, hovering on func reveals two arguments, arg1 and **kwargs. It would be nice if instead hovering on func showing arg1, extra_arg1, and extra_arg2.

Image

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    UserBugs reported by external users that should be prioritisedcodenav

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions