void () { doTest("str", "(int) -> str", """ from typing import Callable def dec(fun) -> Callable[[int], str]: def decor(i): return 'sd' return decor @dec class Func: x: int value = Func(1) dec_func = Func"""); }