We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It'd be useful to track if a local variable was read before assigned again:
def main(): x = 5 x = 6 print(x)
A common use-case is simply typos or using if instead of elif:
if
elif
if case1: x = 1 if case2: x = 2 else: x = 3
Where x = 1 is never used. The correct snippet after fixing the mistake would be:
x = 1
if case1: x = 1 elif case2: x = 2 else: x = 3
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It'd be useful to track if a local variable was read before assigned again:
A common use-case is simply typos or using
if
instead ofelif
:Where
x = 1
is never used.The correct snippet after fixing the mistake would be:
The text was updated successfully, but these errors were encountered: