ruff
Apply some minor changes to `unnecessary-list-index-lookup`
#8932
Merged

Loading