void () { doTest("dict[T, int]", """ from typing import TypeVar, Generic, Dict, List T = TypeVar('T') class A(Generic[T]): pass class B(A[List[T]], Generic[T]): def __init__(self) -> None: self.value_set: Dict[T, int] = {} def foo(self) -> None: expr = self.value_set"""); }