void () { doTest("tuple[int, str]", """ from typing import Generic, TypeVar T1 = TypeVar('T1') T2 = TypeVar('T2') T3 = TypeVar('T3') T4 = TypeVar('T4') T5 = TypeVar('T5') T6 = TypeVar('T6') class Pair(Generic[T1, T2]): pass class PairExt(Pair[T3, T4]): def __init__(self, first: T3, second: T4): pass def to_tuple(pair: Pair[T5, T6]) -> tuple[T5, T6]: pass expr = to_tuple(PairExt(42, 'foo'))"""); }