Specify `TYPE_CHECKING = False` without typing import

I only use mypy so if it’s not added to the spec, I hope at least mypy doesn’t remove support for TYPE_CHECKING = False, because as noted above, it’s useful for CLIs and small scripts that want to minimise the total number of imports, especially as it’s getting slower to import typing in 3.14. Otherwise I fear some projects may remove type checking.

5 Likes