Closed thombashi closed 2 years ago
Hi! Any chance you could add these two keys to dictionary in a try catch and catch AttributeError for missing keys? This will maintain backwards compat with pyflakes 2.4 users rather than silently changing what gets flagged.
Something like
CODES = {...}
try:
CODES[m.RedefinedInListComp.message] = "W0621"
except AttributeError:
pass
Thank you for your feedback. I modified the PR to keep backward compatibility.
Fix #224
RedefinedInListComp
andReturnWithArgsInsideGenerator
were removed atpyflakes 2.5.0
: https://github.com/PyCQA/pyflakes/commit/2246217295dc8cb30ef4a7b9d8dc449ce32e603a