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
Hi there, it seems like PLR1736 does not account for custom start indices in enumerate and transforms:
def foo(some_list: list[int]): for index, list_item in enumerate(some_list, start=1): print(some_list[index])
into:
def foo(some_list: list[int]): for index, list_item in enumerate(some_list, start=1): print(list_item)
Used command: ruff check path/to/file.py --fix --isolated --select PL
ruff check path/to/file.py --fix --isolated --select PL
Version: ruff 0.5.5
ruff 0.5.5
The text was updated successfully, but these errors were encountered:
Thanks.
Sorry, something went wrong.
unnecessary-list-index-lookup
8e383b9
charliermarsh
Successfully merging a pull request may close this issue.
Hi there, it seems like PLR1736 does not account for custom start indices in enumerate and transforms:
into:
Used command:
ruff check path/to/file.py --fix --isolated --select PL
Version:
ruff 0.5.5
The text was updated successfully, but these errors were encountered: