From 5b01f3f1916f78729b86aa74e3e90c2fda8d5871 Mon Sep 17 00:00:00 2001 From: Denis Borisov Date: Mon, 16 Sep 2024 17:05:17 +0500 Subject: [PATCH] Change int to Any in unpacking unbounded tuple types --- docs/spec/generics.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/spec/generics.rst b/docs/spec/generics.rst index 2cb3f6f6..5edda0ee 100644 --- a/docs/spec/generics.rst +++ b/docs/spec/generics.rst @@ -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