void () { runWithLanguageLevel( LanguageLevel.getLatest(), () -> doTest("Type[MyClass]", """ from typing import TypeVar, Type T = TypeVar("T", bound=type) def foo(t: T) -> T: pass class MyClass: pass expr = foo(MyClass)""") ); }