Callables like operator.call
produce arg-type
error with callables that take *args: Unpack[Ts]
and >= 1 keyword argument
#16662
Labels
Uh oh!
There was an error while loading. Please reload this page.
Bug Report
operator.call
and similarParamSpec
callables (e.g.concurrent.futures.Executor.submit
) produce anarg-type
error when doingcall(fn, fn2, some_kwarg=...)
wherefn
has signature(fn2: Callable[[Unpack[Ts]], T], *args: Unpack[Ts], some_kwarg: ...) -> ...
this looks like a
TypeVarTuple
analog of #16405.To Reproduce
Expected Behavior
no error.
Actual Behavior
see comments in the reproducer above.
Your Environment
mypy.ini
(and other config files): noneThe text was updated successfully, but these errors were encountered: