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