Skip to content

Support for PEP 646 #12280

Closed
Closed
@erictraut

Description

@erictraut

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions