Skip to content

Commit 0a47e56

Browse files
Typo fix: Replace TypeVar with TypeVarTuple in a docs example (#1760)
Replace `TypeVar` with `TypeVarTuple` in two spots.
1 parent 459e610 commit 0a47e56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/spec/generics.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1574,8 +1574,8 @@ First, type arguments to generic aliases can be variadic. For example, a
15741574

15751575
::
15761576

1577-
Ts1 = TypeVar('Ts1')
1578-
Ts2 = TypeVar('Ts2')
1577+
Ts1 = TypeVarTuple('Ts1')
1578+
Ts2 = TypeVarTuple('Ts2')
15791579

15801580
IntTuple = tuple[int, *Ts1]
15811581
IntFloatTuple = IntTuple[float, *Ts2] # Valid

0 commit comments

Comments
 (0)