]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-143181: Fix 'overriden' -> 'overridden' in c-api/module.rst (#143182)
authorDuane Hilton <duane9@gmail.com>
Sat, 27 Dec 2025 07:23:57 +0000 (00:23 -0700)
committerGitHub <noreply@github.com>
Sat, 27 Dec 2025 07:23:57 +0000 (02:23 -0500)
* Doc: Fix typo 'overriden' -> 'overridden' in c-api/module.rst

* Fix 'overriden' -> 'overridden' in tests

Doc/c-api/module.rst
Lib/test/test_build_details.py
Lib/test/test_dict.py
Lib/test/test_set.py

index 22f8b1309aa38b969fa1911f5f5176489c0009f2..37c92aeb6dcb381675c9c014e3df74f34ec9b0c5 100644 (file)
@@ -571,7 +571,7 @@ A module's token -- and the *your_token* value to use in the above code -- is:
   of that slot;
 - For modules created from an ``PyModExport_*``
   :ref:`export hook <extension-export-hook>`: the slots array that the export
-  hook returned (unless overriden with :c:macro:`Py_mod_token`).
+  hook returned (unless overridden with :c:macro:`Py_mod_token`).
 
 .. c:macro:: Py_mod_token
 
index ba9afe69ba46e8b62124f36e981bcc5f49ea22e6..30d9c213077ab75bf382d4a168e76231eeb29185 100644 (file)
@@ -33,7 +33,7 @@ except (FileNotFoundError, ImportError):
 class FormatTestsBase:
     @property
     def contents(self):
-        """Install details file contents. Should be overriden by subclasses."""
+        """Install details file contents. Should be overridden by subclasses."""
         raise NotImplementedError
 
     @property
index 665b3e843dd3a5dd2a9d5c1a26233589c254d9fc..77a5f2a108d07f1b53bc5238ee3951311635b807 100644 (file)
@@ -1581,7 +1581,7 @@ class DictTest(unittest.TestCase):
         with check_unhashable_key():
             d.get(key)
 
-        # Only TypeError exception is overriden,
+        # Only TypeError exception is overridden,
         # other exceptions are left unchanged.
         class HashError:
             def __hash__(self):
index c0df9507bd7f5edb2de8a6ae3c65e7c38b409e97..203a231201c669b221a3568d4a1a40fc7a69a509 100644 (file)
@@ -661,7 +661,7 @@ class TestSet(TestJointOps, unittest.TestCase):
         with check_unhashable_element():
             myset.discard(elem)
 
-        # Only TypeError exception is overriden,
+        # Only TypeError exception is overridden,
         # other exceptions are left unchanged.
         class HashError:
             def __hash__(self):