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