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