Skip to content

RUF017 fix suggestion is a syntax error #25436

@Redoubts

Description

@Redoubts

Summary

At https://docs.astral.sh/ruff/rules/quadratic-list-summation/, it suggests
[*sublist for sublist in lists], but much to many people's dismay this is a syntax error. You can't use unpacking in a comprehension. Can the example be something else?

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    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