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

Unbalanced tuple unpack gets incorrect type #403

Open
@jakebailey

Description

@jakebailey

image

Only x should be an int, but y is being shown as one too. This will technically raise a ValueError ("not enough values to unpack"), but we shouldn't show any completion on y (which would be misleading).

Likely related is this:

(x, *y) = (1,)

Completing on y should tell you that it's a list, but we show nothing.

Found in #334.

Metadata

Metadata

Assignees

No one assigned

    Labels

    genfrom the generated tests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions