False positive used-before-assignment for type annotations in inner functions #9391
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
Needs PR
This issue is accepted, sufficiently specified and now needs an implementation
Milestone
Bug description
Configuration
No response
Command used
pylint src\test.py
Pylint output
Expected behavior
No errors. The "variable" Foo should be tagged as used-before-assigned only if the function were defined at module level.
As a side note, pylint doesn't output any errors for
Pylint version
OS / Environment
Microsoft Windows [Version 10.0.19045.3930]
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: