We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92fb824 commit 8542652Copy full SHA for 8542652
pylint/checkers/variables.py
@@ -408,8 +408,8 @@ def _has_locals_call_after_node(stmt, scope):
408
"Emitted when a local variable is accessed before its assignment took place. "
409
"Assignments in try blocks are assumed not to have occurred when evaluating "
410
"associated except/finally blocks. Assignments in except blocks are assumed "
411
- "not to have occurred, except when the associated try block contains a return "
412
- "statement.",
+ "not to have occurred when evaluating statements outside the block, except "
+ "when the associated try block contains a return statement.",
413
),
414
"E0602": (
415
"Undefined variable %r",
0 commit comments