Rule E0643 behaves inconsistently when indexing tuples #10076
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
Bug description
In the following example file ex.py I'm indexing a tuple built from another iterable. The potential-index-error rule (E0643) behaves differently depending on the syntax choices:
tuple
-constructor produces no errorex.py
Command used
Pylint output
Expected behavior
No errors in the file, or the E0643 error occurs multiple times. Whichever is intended for indexing tuples.
Pylint version
OS / Environment
Win11
The text was updated successfully, but these errors were encountered: