Skip to content
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

refactor: replace range(len(...)) with enumerate(...) #500

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

deepsource-autofix[bot]
Copy link
Contributor

Using range(len(...)) is not pythonic. Python does not have not index-based loops. Instead, it uses collection iterators. Python has a built-in method enumerate which adds a counter to an iterable.

Using `range(len(...))` is not pythonic. Python does not have not index-based loops. Instead, it uses collection iterators.  Python has a built-in method `enumerate` which adds a counter to an iterable.
@rtk-rnjn rtk-rnjn merged commit 7e3c306 into main Feb 2, 2024
7 of 9 checks passed
@rtk-rnjn rtk-rnjn deleted the deepsource-autofix-8c307cb9 branch February 2, 2024 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant