# 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 "TypeError: string indices must be integers, not 'str' TypeError: string indices must be integers, not 'str' TypeError: string indices must be integers, not 'str'", exit 0 # after the fix: no stdout, exit 0 # finding 2026-10-17T21-04-33-755Z-llwi-ruff-PLR1736/r2-p004; rule fired 1 time(s) before the fix lst = ['a', 'b', 'c'] for lst, lst in enumerate(lst): # outer lst shadows inner? actually, first is index, second is element try: result = lst[lst] # original: indexes the list with the element (string) -> error except Exception as e: print(f'{type(e).__name__}: {e}', end=' ')