Skip to content

Simplify comprehensions and literal construction (flake8-comprehensions) - #5577

Open
AniketBajaj2024 wants to merge 1 commit into
Osmantic:mainfrom
AniketBajaj2024:fix/c4-comprehension-cleanup
Open

AniketBajaj2024 wants to merge 1 commit into
Osmantic:mainfrom
AniketBajaj2024:fix/c4-comprehension-cleanup

Conversation

@AniketBajaj2024

Copy link
Copy Markdown
Contributor

Replaces constructs like list(x for x in y) with a direct comprehension and dict()/list() calls with literals.

Applied by 'ruff check --select C4 --fix'; all touched files byte-compiled afterwards.

Replaces constructs like list(x for x in y) with a direct comprehension
and dict()/list() calls with literals.

Applied by 'ruff check --select C4 --fix'; all touched files
byte-compiled afterwards.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant