# fixhunt regression fixture: ruff PLR1736, ruff 0.17.1 # the fix labelled safe changes the program's output on this program # before the fix: stdout "Before: lst[0]=10, x=10 Before: lst[1]=88, x=20", exit 0 # after the fix: stdout "Before: lst[0]=10, x=10 Before: lst[1]=20, x=20", exit 0 # finding 2026-10-17T21-04-33-755Z-llwi-ruff-PLR1736/r1-p002; rule fired 1 time(s) before the fix lst = [10, 20] for i, x in enumerate(lst): print(f'Before: lst[{i}]={lst[i]}, x={x}') if i == 0: lst = [99, 88] # Rebinding in outer scope