False positive "consider-using-dict-items" when iteration over dict.keys() #9554
Labels
False Positive 🦟
A message is emitted but nothing is wrong with the code
Needs PR
This issue is accepted, sufficiently specified and now needs an implementation
Milestone
Bug description
The loop triggers both "consider-using-dict-items" & "consider-iterating-dictionary". The former is a false positive.
This is especially annoying when "consider-iterating-dictionary" is disabled because someone insists that
.keys()
is clearerHowever fixing the 2nd warning by removing
.keys()
both go awayCommand used
Pylint output
Expected behavior
No "consider-using-dict-items" warning
Pylint version
The text was updated successfully, but these errors were encountered: