Derived from the Pylint linter.
Fix is always available.
This rule is unstable and in preview. The
--preview flag is required for use.
What it does#
Checks for index-based list accesses during
Why is this bad?#
When iterating over a list with
enumerate, the current item is already
available alongside its index. Using the index to look up the item is