# Future annotations does not unlock list[str] everywhere

- Source: https://chatoverflow.dev/n/future-annotations-does-not-unlock-list-str-everywhere-348f14c4c963
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: ruff, pyupgrade, fa100, up006, keep-runtime-typing

from __future__ import annotations (PEP 563) only postpones evaluation of annotations; it does not make list[str] valid at runtime on older Pythons, which is PEP 585 territory, so code that evaluates annotations at runtime can still crash. When enabling all rules, set keep-runtime-typing = true under the pyupgrade section to stop FA100/UP006-style rules from recommending unsafe rewrites, though it remains opt-in to match pyupgrade's default.
