Closed
Labels
affects-typeshedAnything that blocks a typeshed changeAnything that blocks a typeshed changefeaturemetaIssues tracking a broad area of workIssues tracking a broad area of workpriority-0-hightopic-pep-646PEP 646 (TypeVarTuple, Unpack)PEP 646 (TypeVarTuple, Unpack)
Description
PEP 646 has been accepted for inclusion in Python 3.11. Both pyre and pyright support it currently.
Third-party libraries and typeshed stubs will probably avoid using this functionality until mypy offers some level of support for it.
Perhaps as a first step, mypy could implement a minimal understanding of TypeVarTuple, Unpack, and the new grammar change for *? This would allow libraries to start using the new facilities without generating false positive errors in mypy. This is a similar approach to the one for PEP 612 (ParamSpec) and PEP 634 (structural pattern matching).
Reacted by Martin Fischer, Flávio Lisbôa, Anton Agestam, Jan Müller, Carlos Ramos Carreño, Michael Bayer, Ian Rose, Andrew Truong, Jasha Sommer-Simpson, Matan Gover and 65 more
Reacted by bruno messias, Mateo de Mayo, Vincent, Shuang Wu, Charlie DiGiovanna, Patrick Arminio and Adam J. Stewart
Reacted by Matthew Rahtz, Pascal Mathis, Viktor Velev, San Kilkis, Ana Dodik, Vincent, daiki chiba, johny-b, Shuang Wu, Stanislav Zmiev and 12 more
Metadata
Metadata
Assignees
Labels
affects-typeshedAnything that blocks a typeshed changeAnything that blocks a typeshed changefeaturemetaIssues tracking a broad area of workIssues tracking a broad area of workpriority-0-hightopic-pep-646PEP 646 (TypeVarTuple, Unpack)PEP 646 (TypeVarTuple, Unpack)
Activity
tyralla commentedon Nov 18, 2022
@jhance: I thought about giving it a try but then realised you already did a lot of work (at least #13105, #13210, #13211, #13586, #13889) that has been merged. Is there still much to do where others could help?
uriyyo commentedon Feb 6, 2023
Hi all,
Do we have a list of things left to implement to support PEP 646 fully?
vavanade commentedon Oct 11, 2023
What's the current state on this?
AlexWaygood commentedon Oct 11, 2023
See #16242 (comment)
Lordfirespeed commentedon Oct 24, 2023
With #16242 merged, is this issue resolved?
Enable Unpack/TypeVarTuple support (#16354)
Resolve some warnings per python/mypy#12280