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
main.py:7: note: Revealed type is "def (*exc_info: Unpack[tuple[type[builtins.BaseException], builtins.BaseException, types.TracebackType]])"
main.py:8: error: Incompatible types in assignment (expression has type "Callable[[VarArg(*tuple[type[BaseException], BaseException, TracebackType])], None]", variable has type "Callable[[type[BaseException], BaseException, TracebackType | None], Any]") [assignment]
Found 1 error in 1 file (checked 1 source file)
Your Environment
Mypy version used: master
Mypy command-line flags: default
Mypy configuration options from mypy.ini (and other config files):
Python version used: 3.12
The text was updated successfully, but these errors were encountered:
Bug Report
PEP-646 tuple unpacking does not interpret tuple as a fixed set of arguments.
To Reproduce
https://mypy-play.net/?mypy=master&python=3.12&gist=f9cacc6d3b30cfbb925d8c72bd8a4617
Expected Behavior
No error as
hook
takes one exception tuple.Actual Behavior
Your Environment
master
mypy.ini
(and other config files):The text was updated successfully, but these errors were encountered: