From 3dcced7afcc88d6a18ece212920a294c72e9e323 Mon Sep 17 00:00:00 2001 From: Duane Hilton Date: Thu, 25 Dec 2025 19:03:23 -0700 Subject: [PATCH 1/2] Doc: Fix typo 'overriden' -> 'overridden' in c-api/module.rst --- Doc/c-api/module.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/c-api/module.rst b/Doc/c-api/module.rst index 22f8b1309aa38b..37c92aeb6dcb38 100644 --- a/Doc/c-api/module.rst +++ b/Doc/c-api/module.rst @@ -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 `: 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 From 8b4c5ef289d7bc009451abf8b1a7bb0134bcfe25 Mon Sep 17 00:00:00 2001 From: Duane Hilton Date: Fri, 26 Dec 2025 15:33:37 -0700 Subject: [PATCH 2/2] Fix 'overriden' -> 'overridden' in tests --- Lib/test/test_build_details.py | 2 +- Lib/test/test_dict.py | 2 +- Lib/test/test_set.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Lib/test/test_build_details.py b/Lib/test/test_build_details.py index ba9afe69ba46e8..30d9c213077ab7 100644 --- a/Lib/test/test_build_details.py +++ b/Lib/test/test_build_details.py @@ -33,7 +33,7 @@ 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 diff --git a/Lib/test/test_dict.py b/Lib/test/test_dict.py index 665b3e843dd3a5..77a5f2a108d07f 100644 --- a/Lib/test/test_dict.py +++ b/Lib/test/test_dict.py @@ -1581,7 +1581,7 @@ def check_unhashable_key(): 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): diff --git a/Lib/test/test_set.py b/Lib/test/test_set.py index c0df9507bd7f5e..203a231201c669 100644 --- a/Lib/test/test_set.py +++ b/Lib/test/test_set.py @@ -661,7 +661,7 @@ def check_unhashable_element(): 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):