Closed tjkuson closed 3 months ago
Adds C420 that checks for dictionary comprehensions that use constant values.
C420
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).
test_C418_pass
dict({x: 1 for x in range(1)}, a=1)
Closes #552.
Thank you!
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.