You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PEP-612 ParamSpec with high-order function error. #12595
paramspec.py:24: error: Argument 1 has incompatible type "Callable[[int, int], Any]"; expected "Callable[[VarArg(<nothing>), KwArg(<nothing>)], <nothing>]"
paramspec.py:28: error: Argument 1 to "__call__" of "Wrapped" has incompatible type "int"; expected <nothing>
paramspec.py:28: error: Argument 2 to "__call__" of "Wrapped" has incompatible type "int"; expected <nothing>
Found 3 errors in 1 file (checked 1 source file
Activity
Make sure to keep variables even if unused.
ilevkivskyi commentedon Aug 16, 2023
This works on master with
--new-type-inference, likely fixed by #15837