_______________________________________________On Wed, Oct 14, 2020 at 12:52 PM <luk-f-a@outlook.com> wrote:thanks Guido! I knew about PEP 637 but had not realized that it would make `*args` available in indexing.
@all: So PEP 637 might make this available, but the point about syntax changes making tensor typing unavailable to existing Python versions still remains. Which means that even if we agreed `Tuple[*Ts]` is better (and not everyone might agree), we face the choice of nicer syntax vs something immediately available.
I wonder what folks think about a hybrid approach with a `Expand` or `Map`/`Concatenate` operator-based solution for Python <= 3.9, plus unpack/splat approach for >= 3.10.That sounds like a decent approach. Just like we're using typing.Union[X, Y] but in Python 3.10 you can also use X|Y, due to PEP 604.
----Guido van Rossum (python.org/~guido)Pronouns: he/him (why is my pronoun here?)
Typing-sig mailing list -- typing-sig@python.org
To unsubscribe send an email to typing-sig-leave@python.org
https://mail.python.org/mailman3/lists/typing-sig.python.org/
Member address: mrahtz@google.com