We define a type variable `A`: A = TypeVar('A') The following gives the error `Invalid type A`: IterA = TypeVar('IterA', Iterator[A], Iterable[A])