-
Notifications
You must be signed in to change notification settings - Fork 80
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
Removing unused variables doesn't work #87
Comments
I would say it makes sense it isn't removed, as If that code was in a library If you had import os # unused import
import abc
def fun():
unused_var = 1
print("hello world") then it would be removed, as it's a local variable (which could not be accessed outside |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a sample
bad_code.py
script below:And I run it with the command:
However, the unused_var variable is not deleted :/
The text was updated successfully, but these errors were encountered: