From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 8 Mar 2022 04:40:16 +0000 (-0800) Subject: Removed ambiguity in __init_subclass__ docs (GH-31540) X-Git-Tag: v3.9.11~29 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=89c360125bf6562c99fcc17489dc234c624aa387;p=thirdparty%2FPython%2Fcpython.git Removed ambiguity in __init_subclass__ docs (GH-31540) (cherry picked from commit ab014978aef303ac60465c9010505d798dc34df8) Co-authored-by: David Gilbertson --- diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index 967308b95ffc..f4320db60c92 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -1895,7 +1895,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