Skip to content

Overloads with variable-length arguments via *args #5866

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

You must be logged in to vote

You are correct that this isn't possible with the type system today. There has been some discussion of a "Map" mechanism that allows a transform to be applied to each element in a TypeVarTuple, but this hasn't made it to a PEP proposal yet.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@BaconPancakes
Comment options

@erictraut
Comment options

Answer selected by BaconPancakes
@BaconPancakes
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