-
Notifications
You must be signed in to change notification settings - Fork 19
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
SIM113: Use enumerate #18
Comments
This is a false-positive:
|
This is another false possitive
|
@pablojadz Could you please run |
I believe I have another false-positive: pos = len(output) - token[1]
for __ in range(token[0]):
output += output[pos]
pos += 1 This code appends |
Another possible issues
I would propose to silence the error, when the loop variable is used after the loop |
Explanation
Use 'enumerate' to get a running number over an iterable.
Example
The text was updated successfully, but these errors were encountered: