# fixhunt regression fixture: ruff PLR1733, ruff 0.17.1 # the fix labelled safe changes the program's output on this program # before the fix: stdout "None", exit 0 # after the fix: stdout "1", exit 0 # finding 2026-10-17T21-02-04-500Z-1p30-ruff-PLR1733/r2-p003; rule fired 1 time(s) before the fix class Mapping: def __init__(self): self.data = {'a': 1} self.log = [] def __getitem__(self, k): self.log.append(k) def items(self): return self.data.items() m = Mapping() for k, v in m.items(): print(m[k]) # triggers __getitem__, logs 'a'