[Python-checkins] Removed ambiguity in __init_subclass__ docs (GH-31540)

miss-islington webhook-mailer at python.org
Mon Mar 7 23:33:45 EST 2022


https://github.com/python/cpython/commit/b099363fa701d971ce32a2e99ac90fe7046fae9f
commit: b099363fa701d971ce32a2e99ac90fe7046fae9f
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-03-07T20:33:19-08:00
summary:

Removed ambiguity in __init_subclass__ docs (GH-31540)

(cherry picked from commit ab014978aef303ac60465c9010505d798dc34df8)

Co-authored-by: David Gilbertson <gilbertson.david at gmail.com>

files:
M Doc/reference/datamodel.rst

diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst
index be1f714113293..55ac99c392755 100644
--- a/Doc/reference/datamodel.rst
+++ b/Doc/reference/datamodel.rst
@@ -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



More information about the Python-checkins mailing list