# fixhunt regression fixture: ruff TC006, ruff 0.17.1 # the fix labelled safe changes the program's output on this program # before the fix: no stdout, stderr "NameError: name 'MyType' is not defined", exit 1 # after the fix: no stdout, stderr "NameError: name 'x' is not defined", exit 1 # finding 2026-10-17T20-41-40-602Z-mapj-ruff-TC006/r2-p003; rule fired 1 time(s) before the fix import typing y = typing.cast(MyType, [x]) # Rule triggers: MyType is not a string