
Nov. 2, 2022
5:02 p.m.
I think it's indeterminate and undefined. I recommend against relying on something like this. Different type checkers will inevitably produce different answers here. Similar ambiguities arise for unpacking and assigning arguments to parameters when indeterminate-length tuples are involved. ``` def func(y: tuple[int, *tuple[float, ...], int, str]): a, b, *c, d = y ``` -Eric -- Eric Traut Contributor to Pyright & Pylance Microsoft