typing
typing copied to clipboard
Change int to Any in unpacking unbounded tuple types
It looks like there should be Any instead of int, because the documentation says the following:
"""
We can also pass a *tuple[int, ...] wherever a *Ts is expected. This is useful when we have particularly dynamic code and cannot state the precise number of dimensions or the precise types for each of the dimensions.
"""
Thanks, this seems to be a remnant from PEP 646 (https://peps.python.org/pep-0646/#unpacking-unbounded-tuple-types) where Tuple[int, ...] as used in the section as an example.