]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Removed ambiguity in __init_subclass__ docs (GH-31540)
authorDavid Gilbertson <gilbertson.david@gmail.com>
Tue, 8 Mar 2022 04:13:01 +0000 (15:13 +1100)
committerGitHub <noreply@github.com>
Tue, 8 Mar 2022 04:13:01 +0000 (20:13 -0800)
Doc/reference/datamodel.rst

index a773b73ce32433d3d3af8c22ce3d45546045e143..0bcb9dc94f58a3d19be911b781e13f5c2b195fc4 100644 (file)
@@ -1971,7 +1971,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