void () { doTestByText(""" from typing import ParamSpec, Callable, TypeVar P = ParamSpec('P') T = TypeVar('T') def caller(f: Callable[P, T], *args: P.args, **kwargs: P.kwargs): f(*args, **kwargs) def func(n: int, s: str) -> None: pass caller(func, 42, 'foo', <warning descr="Unexpected argument (from ParamSpec 'P')">None</warning>)"""); }