]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo in datamodel docs (#113314)
authorRodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
Wed, 20 Dec 2023 11:58:38 +0000 (11:58 +0000)
committerGitHub <noreply@github.com>
Wed, 20 Dec 2023 11:58:38 +0000 (11:58 +0000)
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
Doc/reference/datamodel.rst

index 5e3757e1f5c6f6191dc3c9401776375ab67c1a6b..c774d75433420ee184771008eee814073489a6e5 100644 (file)
@@ -2811,7 +2811,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),