# fixhunt regression fixture: ruff FURB103, ruff 0.17.1 # the fix labelled safe changes the program's output on this program # before the fix: no stdout, stderr "TypeError: write() argument must be str, not Num", exit 1 # after the fix: no stdout, stderr "TypeError: data must be str, not Num", exit 1 # finding 2026-10-27T22-10-17-844Z-aav5-ruff-FURB103/r2-p007; rule fired 1 time(s) before the fix class Num: def __init__(self, v): self.value = v n = Num(42) with open('num.txt', 'w') as f: f.write(n)