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
Use * instead of Unpack[...] in messages when targeting Python 3.11 or later #16445
Activity
ilevkivskyi commentedon Nov 10, 2023
Yeah, we already do this for error messages, see https://github.com/python/mypy/blob/master/mypy/messages.py#L2519-L2520. I just noticed one tricky thing btw:
Unpackcan be also used forTypedDictunpacking in**kwargs, in that case we need to keep it asUnpack[...].AlexWaygood commentedon Nov 10, 2023
See also python/cpython#104048 and python/typing_extensions#163, where we changed the runtime repr of
Unpackto reflect that it could now be used in a PEP-692 context as well as a PEP-646 contextilevkivskyi commentedon May 16, 2026
On latest version we show
I think this can be closed now.