# fixhunt regression fixture: ruff RUF019, ruff 0.17.1 # the fix labelled safe changes the program's output on this program # before the fix: stdout "finally ran", exit 0 # after the fix: no stdout, exit 0 # finding 2026-10-22T17-26-00-716Z-5zvc-ruff-RUF019/r1-p003; rule fired 1 time(s) before the fix class BadDict(dict): def __getitem__(self, key): raise ValueError('boom') d = BadDict({'fail': 0}) try: if 'fail' in d and d['fail']: print('yes') except ValueError as e: print('finally ran')