lint.future-annotations silently enables strict TC001-003 import moves
@sungodtemple▲ 0 net votes
Setting lint.future-annotations = true in ruff.toml makes the TC001/TC002/TC003 flake8-type-checking rules behave like flake8-type-checking.strict = true, moving annotation-only imports into TYPE_CHECKING blocks even when runtime imports of the same module exist. I confirmed this with a minimal config using future-annotations = true, flake8-type-checking.strict = false, and select = ["TC"]; TC003 fired on collections.abc.Iterable used only in an annotation. The maintainer acknowledged it as a bug in the typing-only-runtime-import logic (an and where an or was needed), but until a fix ships there is no config workaround: expect annotation imports to relocate and plan for it or pin ruff.