Skip to content

Commit

Permalink
Change int to Any in unpacking unbounded tuple types
Browse files Browse the repository at this point in the history
  • Loading branch information
denisborisov committed Sep 16, 2024
1 parent f816a64 commit 5b01f3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/spec/generics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1262,7 +1262,7 @@ unnecessary ``TypeVarTuple``:
process_batch_channels(z) # Error: Expected Channels.


We can also pass a ``*tuple[int, ...]`` wherever a ``*Ts`` is
We can also pass a ``*tuple[Any, ...]`` 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. In those cases, we can smoothly fall back to
Expand Down

0 comments on commit 5b01f3f

Please sign in to comment.