mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
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
This commit is contained in:
parent
54362898f3
commit
5d1e78f7b5
4 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue