You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In _slice_single, replace manual index tracking with enumerate:
- i = 0- for dim in sorted(squeeze_dims):- out = out.squeeze(dim - i)- i += 1+ for i, dim in enumerate(sorted(squeeze_dims)):+ out = out.squeeze(dim - i)
This change improves clarity and conciseness.
Committable suggestion was skipped due to low confidence.
🧰 Tools🪛 Ruff
1261-1261: Use enumerate() for index variable i in for loop
Use
enumerate
for Cleaner LoopingIn
_slice_single
, replace manual index tracking withenumerate
:This change improves clarity and conciseness.
🧰 Tools
🪛 Ruff
Originally posted by @coderabbitai[bot] in #35 (comment)
The text was updated successfully, but these errors were encountered: