```suggestion                      if isinstance(node, astroid.For) and (                          isinstance(subscript.parent, astroid.Assign)                          and subscript in subscript.parent.targets                          or isinstance(subscript.parent, astroid.AugAssign)                          and subscript == subscript.parent.target                      ):  ```  I haven't tested it, but I assume you wanted to write this instead.