PY3.E1126
Invalid sequence index
Used when a sequence type is indexed with an invalid type. Valid types are ints, slices, and objects with an index method.
Noncompliant Code:
Copy
data = [1, 2, 3]
print(data[object])
# but be careful with data[True], it will work since True is represnted as 1
# and False as 0, so it will work
Compliant Code:
Copy
data = [1, 2, 3]
print(data[0])