# fixhunt regression fixture: ruff UP038, ruff 0.17.1 # the fix crashed the tool on this program # before the fix: no stdout, stderr "TypeError: 'Writer' object does not support the context manager protocol", exit 1 # finding 2026-10-17T21-20-52-142Z-httm-ruff-UP038/r2-p004; rule fired 0 time(s) before the fix class Writer: def write(self, s): print(s) with Writer() as w: w.write('hello')