Skip to content

does pep-646 let me make a MyTuple[_T, ...] of Element[_T] or am i misunderstanding #1001

Answered by erictraut
zzzeek asked this question in Q&A
Discussion options

You must be logged in to vote

I think what you're looking for is a Map operation over the TypeVarTuple contents. There was something like this in an earlier version of PEP 646, but it was removed because the PEP was already very complex. It's something that could be added in a follow-on PEP assuming that 646 is accepted.

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
1 reply
@zzzeek
Comment options

Answer selected by zzzeek
Comment options

You must be logged in to vote
7 replies
@erictraut
Comment options

@zzzeek
Comment options

@zzzeek
Comment options

@erictraut
Comment options

@zzzeek
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants