starpls
starpls copied to clipboard
Incorrect unused variable diagnosis in loops
With this code:
def foo():
found = False
for i in range(10):
if found:
break
if i == 5:
found = True
return ""
You see this warning about found never being accessed: