Closed gudnimg closed 1 year ago
Using ... means there can be any number of items in the tuple, but the type is known (string)
...
See https://docs.python.org/3/library/typing.html#typing.Tuple
To specify a variable-length tuple of homogeneous type, use literal ellipsis, e.g. Tuple[int, ...]. A plain Tuple is equivalent to Tuple[Any, ...], and in turn to tuple.
Maybe the List needs to be fixed as well. Moving forward, I'll start using the union type notation | instead of Union[ ]
Using
...
means there can be any number of items in the tuple, but the type is known (string)See https://docs.python.org/3/library/typing.html#typing.Tuple