Skip to content

Redundant nesting of StarredElement in Starred with native parser on some cases #623

@isidentical

Description

@isidentical

Short reproducer:

a, *b

Native parser represents *b like this:

Element(
  value=StarredElement(
    value=Name(
      value='b',
    ),
  ),
),

But the python version represents it in a flat fashion:

StarredElement(
  value=Name(
    value='b',
  ),
),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions