]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] Fix typos in docs and comments (#109619) (#109622)
authorAlex Waygood <Alex.Waygood@Gmail.com>
Wed, 20 Sep 2023 17:50:48 +0000 (18:50 +0100)
committerGitHub <noreply@github.com>
Wed, 20 Sep 2023 17:50:48 +0000 (17:50 +0000)
Co-authored-by: Heinz-Alexander Fuetterer <35225576+afuetterer@users.noreply.github.com>
Doc/library/typing.rst
Doc/whatsnew/3.5.rst
Lib/test/test_descr.py
Lib/test/test_frame.py
Lib/test/test_unpack.py

index 09332c7c2133749c5734ac477296312f27c3b962..79f3abd865f6ebae7742979e8abb6bf08a8cf5d4 100644 (file)
@@ -1233,7 +1233,7 @@ These can be used as types in annotations. They all support subscription using
    completely disables typechecking for a function or class.
 
    The responsibility of how to interpret the metadata
-   lies with the the tool or library encountering an
+   lies with the tool or library encountering an
    ``Annotated`` annotation. A tool or library encountering an ``Annotated`` type
    can scan through the metadata elements to determine if they are of interest
    (e.g., using :func:`isinstance`).
index 6d911096c17398244a53dfb23282370bd5f4e272..f104e4da5649fbd24a96bcf268345a391a2cffea 100644 (file)
@@ -921,7 +921,7 @@ and improves their substitutability for lists.
 Docstrings produced by :func:`~collections.namedtuple` can now be updated::
 
     Point = namedtuple('Point', ['x', 'y'])
-    Point.__doc__ += ': Cartesian coodinate'
+    Point.__doc__ += ': Cartesian coordinate'
     Point.x.__doc__ = 'abscissa'
     Point.y.__doc__ = 'ordinate'
 
index 2a12695031d34a48dc263ebf3a241a2a53d5401a..e356624af04e7e9f83e27a6110844f75066a3fd0 100644 (file)
@@ -1980,7 +1980,7 @@ order (MRO) for bases """
         ns = {}
         exec(code, ns)
         number_attrs = ns["number_attrs"]
-        # Warm up the the function for quickening (PEP 659)
+        # Warm up the function for quickening (PEP 659)
         for _ in range(30):
             self.assertEqual(number_attrs(Numbers()), list(range(280)))
 
index 9cb2686f17597a4e607a5606b910cfa95edac2c5..1e52164a6ba0fcd2941f040ec25a8dd619aaf7cc 100644 (file)
@@ -317,7 +317,7 @@ class TestIncompleteFrameAreInvisible(unittest.TestCase):
             sneaky_frame_object = None
             gc.enable()
             next(g)
-            # g.gi_frame should be the the frame object from the callback (the
+            # g.gi_frame should be the frame object from the callback (the
             # one that was *requested* second, but *created* first):
             self.assertIs(g.gi_frame, sneaky_frame_object)
         finally:
index f5ca1d455b5c6f2db608d01848a1a4050fc14eb0..515ec128a08a9cfd69cdc3486160fadd69b9811d 100644 (file)
@@ -162,7 +162,7 @@ class TestCornerCases(unittest.TestCase):
         ns = {}
         exec(code, ns)
         unpack_400 = ns["unpack_400"]
-        # Warm up the the function for quickening (PEP 659)
+        # Warm up the function for quickening (PEP 659)
         for _ in range(30):
             y = unpack_400(range(400))
             self.assertEqual(y, 399)