Skip to content

Commit 5d1e78f

Browse files
authored
gh-143181: Fix 'overriden' -> 'overridden' in c-api/module.rst (#143182)
* Doc: Fix typo 'overriden' -> 'overridden' in c-api/module.rst * Fix 'overriden' -> 'overridden' in tests
1 parent 5436289 commit 5d1e78f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Doc/c-api/module.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ A module's token -- and the *your_token* value to use in the above code -- is:
571571
of that slot;
572572
- For modules created from an ``PyModExport_*``
573573
:ref:`export hook <extension-export-hook>`: the slots array that the export
574-
hook returned (unless overriden with :c:macro:`Py_mod_token`).
574+
hook returned (unless overridden with :c:macro:`Py_mod_token`).
575575
576576
.. c:macro:: Py_mod_token
577577

Lib/test/test_build_details.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
class FormatTestsBase:
3434
@property
3535
def contents(self):
36-
"""Install details file contents. Should be overriden by subclasses."""
36+
"""Install details file contents. Should be overridden by subclasses."""
3737
raise NotImplementedError
3838

3939
@property

Lib/test/test_dict.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1581,7 +1581,7 @@ def check_unhashable_key():
15811581
with check_unhashable_key():
15821582
d.get(key)
15831583

1584-
# Only TypeError exception is overriden,
1584+
# Only TypeError exception is overridden,
15851585
# other exceptions are left unchanged.
15861586
class HashError:
15871587
def __hash__(self):

Lib/test/test_set.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ def check_unhashable_element():
661661
with check_unhashable_element():
662662
myset.discard(elem)
663663

664-
# Only TypeError exception is overriden,
664+
# Only TypeError exception is overridden,
665665
# other exceptions are left unchanged.
666666
class HashError:
667667
def __hash__(self):

0 commit comments

Comments
 (0)