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 Nov 9, 2024
1 parent 76ccb3e commit 5b626da
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 @@ -2380,7 +2380,9 @@ def _is_builtin(self, name: str) -> bool:
def _has_nonlocal_in_enclosing_frame(
self, node: nodes.Name, uncertain_definitions: list[nodes.NodeNG]
) -> bool:
"""Check if there is a nonlocal declaration in the nearest frame that encloses both usage and definitions."""
"""Check if there is a nonlocal declaration in the nearest frame that encloses
both usage and definitions.
"""
defining_frames = {definition.frame() for definition in uncertain_definitions}
frame = node.frame()
is_enclosing_frame = False
Expand Down

0 comments on commit 5b626da

Please sign in to comment.