mirror of
https://github.com/python/cpython.git
synced 2025-09-28 11:15:17 +00:00
[3.12] datamodel: Fix a typo in `object.__init_subclass__
` (GH-111599) (#114004)
datamodel: Fix a typo in ``object.__init_subclass__`` (GH-111599)
(cherry picked from commit a47353d587
)
Co-authored-by: InSync <122007197+InSyncWithFoo@users.noreply.github.com>
This commit is contained in:
parent
b9e15bef82
commit
d577225104
1 changed files with 1 additions and 1 deletions
|
@ -2303,7 +2303,7 @@ class defining the method.
|
||||||
this method is implicitly converted to a class method.
|
this method is implicitly converted to a class method.
|
||||||
|
|
||||||
Keyword arguments which are given to a new class are passed to
|
Keyword arguments which are given to a new class are passed to
|
||||||
the parent's class ``__init_subclass__``. For compatibility with
|
the parent class's ``__init_subclass__``. For compatibility with
|
||||||
other classes using ``__init_subclass__``, one should take out the
|
other classes using ``__init_subclass__``, one should take out the
|
||||||
needed keyword arguments and pass the others over to the base
|
needed keyword arguments and pass the others over to the base
|
||||||
class, as in::
|
class, as in::
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue