Skip to content

Commit 74956dd

Browse files
Update pylint/checkers/variables.py
Co-authored-by: Pierre Sassoulas <[email protected]>
1 parent 07364f7 commit 74956dd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pylint/checkers/variables.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,8 @@ def _inferred_to_define_name_raise_or_return(
686686
case nodes.If():
687687
pass
688688
case _: # pragma: no cover
689+
# The function is only called for Try, With, For, While, Match and
690+
# If nodes. All of which are being handled above.
689691
return False
690692

691693
# Be permissive if there is a break or a continue

0 commit comments

Comments
 (0)