void () { doTest("Entry[str]", """ from typing import Iterator, Generic, TypeVar T = TypeVar("T") class Entry(Generic[T]): pass class MyIterator(Iterator[Entry[T]]): def __next__(self) -> Entry[T]: ... def iter_entries(path: T) -> MyIterator[T]: ... def main() -> None: for x in iter_entries("some path"): expr = x """); }