Skip to content

Commit 5b626da

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 76ccb3e commit 5b626da

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pylint/checkers/variables.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2380,7 +2380,9 @@ def _is_builtin(self, name: str) -> bool:
23802380
def _has_nonlocal_in_enclosing_frame(
23812381
self, node: nodes.Name, uncertain_definitions: list[nodes.NodeNG]
23822382
) -> bool:
2383-
"""Check if there is a nonlocal declaration in the nearest frame that encloses both usage and definitions."""
2383+
"""Check if there is a nonlocal declaration in the nearest frame that encloses
2384+
both usage and definitions.
2385+
"""
23842386
defining_frames = {definition.frame() for definition in uncertain_definitions}
23852387
frame = node.frame()
23862388
is_enclosing_frame = False

0 commit comments

Comments
 (0)