On 1/22/21 10:22 PM, Eric Traut wrote:
I thought of a way that we could avoid all changes to the grammar and eliminate the need for `Unpack`. [...] We could augment the existing TypeVar constructor to support a parameter called `variadic`. The only downside I see is that the use of the star makes it clear to the reader of the code that the type var is variadic, but I think we could accomplish this through a naming convention like `Ts` or `T_va`.
Here's how that would look:
```python T_va = TypeVar("T_va", variadic=True)
1. I'm a bit uncomfortable introducing a naming convention that makes significant changes to typing interpretation. That feels rather subtle. 2. RE: variadic=True, I'll echo an older comment of mine that "variadic" is a bit of mouthful and hard to spell. Instead we might consider something less technical like `tuple=True` or `many=True`. -- David Foster | Seattle, WA, USA Contributor to TypedDict support for mypy