-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
addressed in next versionIssue is fixed and will appear in next published versionIssue is fixed and will appear in next published versionbugSomething isn't workingSomething isn't working
Description
If a tuple contains multiple unpacks without introducing multiple unbounded tuples, it should be legal.
The following currently generates an error, but it should not.
t1: tuple[*tuple[str], *tuple[str]] # OKSimilarly for Unpack:
t11: tuple[Unpack[tuple[str]], Unpack[tuple[str]]] # OKSimilarly for TypeVarTuples:
def func3(t: tuple[*Ts]):
t5: tuple[*tuple[str], *Ts] # OKReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
addressed in next versionIssue is fixed and will appear in next published versionIssue is fixed and will appear in next published versionbugSomething isn't workingSomething isn't working