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 Sep 10, 2021
1 parent 520b794 commit b2746d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pylint/checkers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1563,6 +1563,6 @@ def is_node_in_guarded_import_block(node: nodes.NodeNG) -> bool:
def is_reassigned_after_current(node: nodes.NodeNG, varname: str) -> bool:
"""Check if the given variable name is reassigned in the same scope after the current node"""
return any(
a.name == varname and a.lineno > node.lineno
a.name == varname and a.lineno > node.lineno
for a in node.scope().nodes_of_class(nodes.AssignName)
)

0 comments on commit b2746d5

Please sign in to comment.