]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] Fix typo in datamodel docs (GH-113314) (#113316)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 20 Dec 2023 12:05:33 +0000 (13:05 +0100)
committerGitHub <noreply@github.com>
Wed, 20 Dec 2023 12:05:33 +0000 (12:05 +0000)
Fix typo in datamodel docs (GH-113314)
(cherry picked from commit 5a7cc667f816f0377f763322c2367301ea3379ee)

Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
Doc/reference/datamodel.rst

index 7609775de3bedd63043a5f4ab8fe78673da9d385..224bb053aac4220f5d7dff27a547f898669c48ea 100644 (file)
@@ -2806,7 +2806,7 @@ through the object's keys; for sequences, it should iterate through the values.
    the accepted keys should be integers and slice objects.  Note that the
    special interpretation of negative indexes (if the class wishes to emulate a
    :term:`sequence` type) is up to the :meth:`__getitem__` method. If *key* is
-   of an inappropriate type, :exc:`TypeError` may be raised; if of a value
+   of an inappropriate type, :exc:`TypeError` may be raised; if *key* is a value
    outside the set of indexes for the sequence (after any special
    interpretation of negative values), :exc:`IndexError` should be raised. For
    :term:`mapping` types, if *key* is missing (not in the container),