False positive used-before-assignment
with try/else
#6790
Labels
C: used-before-assignment
Issues related to 'used-before-assignment' check
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 starting with pylint 2.13.0.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: