void () { doTest("str", """ from typing import Generic, TypeVar T1 = TypeVar('T1') T2 = TypeVar('T2') class Box(Generic[T1]): def get(self) -> T1: pass class Pair(Box[T2], Generic[T1, T2]): pass xs: Pair[int, str] = ... expr = xs.get() """); }