False positive used-before-assignment
with try/else/continue
#6804
Labels
C: used-before-assignment
Issues related to 'used-before-assignment' check
Control flow
Requires control flow understanding
False Positive 🦟
A message is emitted but nothing is wrong with the code
Milestone
Bug description
The
used-before-assignment
check reports a false positive with try/else/continue starting with pylint 2.13.0.This issue is nearly identical to #6790, except it involves
continue
instead ofreturn
.Configuration
No response
Command used
Pylint output
Expected behavior
No errors reported, as was the case for 2.12.2.
Pylint version
OS / Environment
Ubuntu 22.04.4
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: