-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Emit used-before-assignment
instead of undefined-variable
for unused type annotations
#5713
Labels
Enhancement ✨
Improvement to a component
Milestone
Comments
jacobtylerwalls
added
the
Needs triage 📥
Just created, needs acknowledgment, triage, and proper labelling
label
Jan 24, 2022
Could it be that the example is different than the error raised? What is |
Sorry, typo in the report. I fixed it to match. |
Pierre-Sassoulas
added
Enhancement ✨
Improvement to a component
and removed
Needs triage 📥
Just created, needs acknowledgment, triage, and proper labelling
labels
Jan 24, 2022
jacobtylerwalls
added a commit
to jacobtylerwalls/pylint
that referenced
this issue
Jan 25, 2022
…ned-variable` when accessing unused type annotations
jacobtylerwalls
added a commit
to jacobtylerwalls/pylint
that referenced
this issue
Jan 25, 2022
…ned-variable` when accessing unused type annotations
jacobtylerwalls
added a commit
to jacobtylerwalls/pylint
that referenced
this issue
Jan 25, 2022
…ned-variable` when accessing unused type annotations
Pierre-Sassoulas
pushed a commit
that referenced
this issue
Jan 26, 2022
…le` when accessing unused type annotations (#5718) * Add confidence level HIGH to `used-before-assignment`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug description
I think we can raise a more appropriate message for cases like:
Because the python interpreter produces:
This feature was added in #5158, so perhaps recent enough to change, but not sure if it's too much churn/worth it to bother.
Expected behavior
Raise
used-before-assignment
instead ofunused-variable
for the above test fromundefined_variable_py38.py
Pylint version
The text was updated successfully, but these errors were encountered: