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

Description

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.

Activity

  1. jakebailey commented on Nov 19, 2018

    @jakebailey
    MemberAuthor

    Also, this:

    (x, y, z) = (1, "")

    z is also shown as an int.

    (Note that the parens are optional in all of these, of course.)

  2. jakebailey commented on Feb 7, 2019

    @jakebailey
    MemberAuthor

    Partially fixed by #546:

    403-1

    403-2

    Probably related to #412.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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