Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 18, 2022
1 parent 8cf3f79 commit d0ed4b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pylint/checkers/variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -2242,7 +2242,9 @@ def _loopvar_name(self, node: astroid.Name) -> None:
self.add_message("undefined-loop-variable", args=node.name, node=node)
return
if any(
isinstance(else_stmt, (nodes.Return, nodes.Raise, nodes.Break, nodes.Continue))
isinstance(
else_stmt, (nodes.Return, nodes.Raise, nodes.Break, nodes.Continue)
)
for else_stmt in assign.orelse
):
return
Expand Down

0 comments on commit d0ed4b7

Please sign in to comment.