```py if TYPE_CHECKING: a: 1 | 2 # no errors def f(self, a: A): ... # no errors class A: ... ```