Skip to content

Commit

Permalink
Change disable
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielNoord committed Sep 5, 2022
1 parent 3719d89 commit 15fc878
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pylint/checkers/variables.py
Expand Up @@ -2209,9 +2209,8 @@ def _loopvar_name(self, node: astroid.Name) -> None:
# scope lookup rules would need to be changed to return the initial
# assignment (which does not exist in code per se) as well as any later
# modifications.
# pylint: disable-next=too-many-boolean-expressions
if (
not astmts
not astmts # pylint: disable=too-many-boolean-expressions
or (
astmts[0].parent == astmts[0].root()
and astmts[0].parent.parent_of(node)
Expand Down

0 comments on commit 15fc878

Please sign in to comment.