False positive used-before-assignment
when usage and assignment guarded by the same test in different statements
#8167
Labels
Blocker 🙅
Blocks the next release
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
High priority
Issue with more than 10 reactions
Needs PR
This issue is accepted, sufficiently specified and now needs an implementation
Milestone
Bug description
The
used-before-assignment
check reports false positive for using the same variable inside multipleif __name__ == '__main__'
statements.Configuration
No response
Command used
Pylint output
Expected behavior
No error.
Pylint version
OS / Environment
No response
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: