void () { doTest("(c: (ParamSpec(\"P\")) -> int, ParamSpec(\"P\"), ParamSpec(\"P\")) -> None", """ from typing import Callable, ParamSpec P = ParamSpec('P') def func(c, # type: Callable[P, int] *args, # type: P.args **kwargs, # type: P.kwargs ): # type: (...) -> None ... expr = func """); }