Closed
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).