# 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 "__contains__(x)", exit 0 # after the fix: stdout "condition passed", exit 0 # finding 2026-10-17T21-39-23-080Z-ah8u-ruff-RUF019/r2-p008; rule fired 1 time(s) before the fix class LoggingDict(dict): def __contains__(self, key): print(f'__contains__({key})') d = LoggingDict({'x': 1}) if 'x' in d and d['x']: print('condition passed')