typing icon indicating copy to clipboard operation
typing copied to clipboard

Change int to Any in unpacking unbounded tuple types

Open denisborisov opened this issue 1 year ago • 1 comments

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. """

denisborisov avatar Sep 16 '24 12:09 denisborisov

All commit authors signed the Contributor License Agreement.
CLA signed

ghost avatar Sep 16 '24 12:09 ghost

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.

srittau avatar Mar 17 '25 10:03 srittau