A special constant that is assumed to be True by 3rd party static type checkers. It is False at runtime.
typing.TYPE_CHECKING
if TYPE_CHECKING:
import expensive_mod
def fun(arg: 'expensive_mod.SomeType') -> None:
local_var: expensive_mod.AnotherType = other_fun()