]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Removed ambiguity in __init_subclass__ docs (GH-31540)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 8 Mar 2022 04:33:19 +0000 (20:33 -0800)
committerGitHub <noreply@github.com>
Tue, 8 Mar 2022 04:33:19 +0000 (20:33 -0800)
(cherry picked from commit ab014978aef303ac60465c9010505d798dc34df8)

Co-authored-by: David Gilbertson <gilbertson.david@gmail.com>
Doc/reference/datamodel.rst

index be1f7141132934eba78bd9d248a0a495ef35c2a9..55ac99c3927551df698923ca929ca62eb7ab7d07 100644 (file)
@@ -1904,7 +1904,7 @@ Customizing class creation
 --------------------------
 
 Whenever a class inherits from another class, :meth:`~object.__init_subclass__` is
-called on that class. This way, it is possible to write classes which
+called on the parent class. This way, it is possible to write classes which
 change the behavior of subclasses. This is closely related to class
 decorators, but where class decorators only affect the specific class they're
 applied to, ``__init_subclass__`` solely applies to future subclasses of the