summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorDavid Gilbertson <gilbertson.david@gmail.com>2022-03-08 04:13:01 (GMT)
committerGitHub <noreply@github.com>2022-03-08 04:13:01 (GMT)
commitab014978aef303ac60465c9010505d798dc34df8 (patch)
treeaa0d7ec59d8f2842d66146c6af3cb9d9e4a06ea3 /Doc
parent8debeed3075bf4d7e568e65da16bec63cf276f4f (diff)
downloadcpython-ab014978aef303ac60465c9010505d798dc34df8.zip
cpython-ab014978aef303ac60465c9010505d798dc34df8.tar.gz
cpython-ab014978aef303ac60465c9010505d798dc34df8.tar.bz2
Removed ambiguity in __init_subclass__ docs (GH-31540)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/reference/datamodel.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst
index a773b73..0bcb9dc 100644
--- a/Doc/reference/datamodel.rst
+++ b/Doc/reference/datamodel.rst
@@ -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