We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76ccb3e commit 5b626daCopy full SHA for 5b626da
pylint/checkers/variables.py
@@ -2380,7 +2380,9 @@ def _is_builtin(self, name: str) -> bool:
2380
def _has_nonlocal_in_enclosing_frame(
2381
self, node: nodes.Name, uncertain_definitions: list[nodes.NodeNG]
2382
) -> bool:
2383
- """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
2384
+ both usage and definitions.
2385
+ """
2386
defining_frames = {definition.frame() for definition in uncertain_definitions}
2387
frame = node.frame()
2388
is_enclosing_frame = False
0 commit comments