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 Oct 22, 2024
1 parent 48eebfb commit cab818f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pylint/checkers/variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,8 @@ def _assigned_locally(name_node: nodes.Name) -> bool:

def _is_before(node: nodes.NodeNG, reference_node: nodes.NodeNG) -> bool:
"""
Returns True if node appears before reference_node in the source code, False otherwise.
Returns True if node appears before reference_node in the source code, False
otherwise.
"""
if node.lineno < reference_node.lineno:
return True
Expand Down

0 comments on commit cab818f

Please sign in to comment.