void () { doTest("str", "(int) -> str", """ from typing import Callable def dec(fun) -> Callable[[int], str]: def wrapper(): return 1 return wrapper @dec def func(ar: str) -> int: return 1 value = func() dec_func = func"""); }