From 9378293c6c590a5dd22e7a31598c5437c9f24936 Mon Sep 17 00:00:00 2001 From: Thanos <111999343+Sachaa-Thanasius@users.noreply.github.com> Date: Mon, 3 Jun 2024 14:22:08 -0400 Subject: [PATCH] Replace `TypeVar` with `TypeVarTuple` in two spots. --- docs/spec/generics.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/spec/generics.rst b/docs/spec/generics.rst index 53d8626f6..e565e21e6 100644 --- a/docs/spec/generics.rst +++ b/docs/spec/generics.rst @@ -1574,8 +1574,8 @@ First, type arguments to generic aliases can be variadic. For example, a :: - Ts1 = TypeVar('Ts1') - Ts2 = TypeVar('Ts2') + Ts1 = TypeVarTuple('Ts1') + Ts2 = TypeVarTuple('Ts2') IntTuple = tuple[int, *Ts1] IntFloatTuple = IntTuple[float, *Ts2] # Valid