PEP 646: fix typo (#2160)
This commit is contained in:
parent
9638809de4
commit
2263e93426
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue