Skip to content

Conversation

denisborisov
Copy link
Contributor

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

@ghost
Copy link

ghost commented Sep 16, 2024

All commit authors signed the Contributor License Agreement.
CLA signed

@srittau
Copy link
Collaborator

srittau commented Mar 17, 2025

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 srittau added the topic: typing spec For improving the typing spec label Mar 17, 2025
@srittau srittau merged commit a01c536 into python:main Mar 17, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic: typing spec For improving the typing spec

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants