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(...) #127

Merged
merged 1 commit into from
Jan 14, 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.
@dmunozv04 dmunozv04 merged commit d205848 into main Jan 14, 2024
4 checks passed
@dmunozv04 dmunozv04 deleted the deepsource-autofix-75d7989d branch January 14, 2024 14:19
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.

1 participant