getting unnecessary-dict-index-lookup
when deleting an item by value
#4716
Labels
False Positive 🦟
A message is emitted but nothing is wrong with the code
Milestone
I was wondering if I'm doing this wrong. I'm trying to remove a dict item when searching the dict's
items()
to re-assign a certain unique value to a new key.NOTES
I've added
# pylint:
comments around the controversial lineThe pylint message suggests I use
addr
instead, but that doesn't help when deleting an item by key.The text was updated successfully, but these errors were encountered: