Skip to content

Rewrite list(x for x in y) to list(y) #10403

@charliermarsh

Description

@charliermarsh

Given list(x for x in y), we first hit C400, which fixes to [x for x in y], which hits C416, which fixes to list(y). We should consider short-circuiting this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedContributions especially welcomeruleImplementing or modifying a lint rule

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions