-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for PEP 646 #12280
Labels
affects-typeshed
Anything that blocks a typeshed change
feature
meta
Issues tracking a broad area of work
priority-0-high
topic-pep-646
PEP 646 (TypeVarTuple, Unpack)
Comments
Closed
AlexWaygood
added
affects-typeshed
Anything that blocks a typeshed change
meta
Issues tracking a broad area of work
labels
Apr 10, 2022
5 tasks
Hi all, |
1 task
What's the current state on this? |
See #16242 (comment) |
With #16242 merged, is this issue resolved? |
JukkaL
pushed a commit
that referenced
this issue
Oct 30, 2023
Fixes #12280 Fixes #14697 In this PR: * Enable `TypeVarTuple` and `Unpack` features. * Delete the old blanket `--enable-incomplete-features` flag that was deprecated a year ago. * Switch couple corner cases to `PreciseTupleTypes` feature. * Add the draft docs about the new feature. * Handle a previously unhandled case where variadic tuple appears in string formatting (discovered on mypy self-check, where `PreciseTupleTypes` is already enabled). --------- Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
airallergy
added a commit
to airallergy/sober
that referenced
this issue
Mar 20, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
affects-typeshed
Anything that blocks a typeshed change
feature
meta
Issues tracking a broad area of work
priority-0-high
topic-pep-646
PEP 646 (TypeVarTuple, Unpack)
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).The text was updated successfully, but these errors were encountered: