PEP 646: fix typo (#2160)

This commit is contained in:
Jelle Zijlstra 2021-11-24 08:48:34 -08:00 committed by GitHub
parent 9638809de4
commit 2263e93426
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -776,7 +776,7 @@ passed to ``__getitem__``. For example, if we do ``foo[a, *b, c]``, and
``foo.__getitem__`` would receive ``(a, d, e, c)``.
To put it another way, note that ``x[..., *a, ...]`` produces the same result
as ``x[(..., a*, ...)]``` (with any slices ``i:j`` in ``...`` replaced with
as ``x[(..., *a, ...)]``` (with any slices ``i:j`` in ``...`` replaced with
``slice(i, j)``, with the one edge case that ``x[*a]`` becomes ``x[(*a,)]``).
TypeVarTuple Implementation