Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: Fix unnecessary-list-comprehension-dict (C404) #4454

Merged

Conversation

echoix
Copy link
Member

@echoix echoix commented Oct 5, 2024

Rewrites unnecessary list comprehension as a dict comprehensions.

Ruff rule: https://docs.astral.sh/ruff/rules/unnecessary-list-comprehension-dict/

Rewrites unnecessary `list` comprehension as a `dict` comprehensions.

Ruff rule: https://docs.astral.sh/ruff/rules/unnecessary-list-comprehension-dict/
@echoix echoix added this to the 8.5.0 milestone Oct 5, 2024
@echoix echoix requested a review from ninsbl October 5, 2024 18:01
@github-actions github-actions bot added Python Related code is in Python libraries labels Oct 5, 2024
@echoix echoix changed the title style Fix unnecessary-list-comprehension-dict (C404) style: Fix unnecessary-list-comprehension-dict (C404) Oct 5, 2024
@echoix echoix enabled auto-merge (squash) October 5, 2024 20:12
@echoix echoix merged commit 5281602 into OSGeo:main Oct 5, 2024
27 of 29 checks passed
@echoix echoix deleted the fix-C404-unnecessary-list-comprehension-dict branch October 5, 2024 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libraries Python Related code is in Python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants