Skip to content

[bug] [formatter] parenthesized single list comp var chokes formatter #8053

@smackesey

Description

@smackesey

The below line is legal python but chokes the formatter:

    return all(filepath.startswith(DAGIT_CLOUD_PATH) for (filepath) in diff_files)

Error:

error: Failed to format .buildkite/utils.py: syntax error: Expected `in` keyword between the `target` and `iter`.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions