[regression] Function wrapped with ParamSpec[Concatenate[]]
is not compatible with Callable[..., Any]
#16247
Labels
ParamSpec[Concatenate[]]
is not compatible with Callable[..., Any]
#16247
Bug Report
I have a decorator-like function that takes a
Callable[Concatenate[...], ...]
as an argument and returns a wrapped callable with the same signature.After upgrading from mypy 1.5.1 to 1.6.0, a wrapped function is no longer considered compatble when it should be. My understanding is that
Callable[..., Any]
should be compatible with every possible callable, but it fails with:To Reproduce
Actual Behavior
Your Environment
The text was updated successfully, but these errors were encountered: