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

Add rule to check for dict comprehensions with constant values #553

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tjkuson
Copy link

@tjkuson tjkuson commented Jan 22, 2024

Adds C420 that checks for dictionary comprehensions that use constant values.

Changed the fixture for test_C418_pass as it was failing (dict({x: 1 for x in range(1)}, a=1) triggers the new rule).

Closes #552.

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.

Feature Request: Detect dictionary comprehensions with constant values
1 participant