-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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).
not-my-profile, flisboac, antonagestam, jan-mue, vnmabus and 70 moredevmessias, mateosss, vsiles, seanwu1105, chardigio and 2 moremrahtz, ppmathis, VIVelev, skilkis, anadodik and 17 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)