From 2263e93426282f4544cf427704faa1347020a036 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Wed, 24 Nov 2021 08:48:34 -0800 Subject: [PATCH] PEP 646: fix typo (#2160) --- pep-0646.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pep-0646.rst b/pep-0646.rst index 7cf08d456..3dc925767 100644 --- a/pep-0646.rst +++ b/pep-0646.rst @@ -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