Skip to content

Commit 0e814f9

Browse files
miss-islingtondavidgilbertson
authored andcommitted
Removed ambiguity in __init_subclass__ docs (pythonGH-31540)
(cherry picked from commit ab01497) Co-authored-by: David Gilbertson <[email protected]>
1 parent 6bfa12f commit 0e814f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/reference/datamodel.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1895,7 +1895,7 @@ Customizing class creation
18951895
--------------------------
18961896

18971897
Whenever a class inherits from another class, :meth:`~object.__init_subclass__` is
1898-
called on that class. This way, it is possible to write classes which
1898+
called on the parent class. This way, it is possible to write classes which
18991899
change the behavior of subclasses. This is closely related to class
19001900
decorators, but where class decorators only affect the specific class they're
19011901
applied to, ``__init_subclass__`` solely applies to future subclasses of the

0 commit comments

Comments
 (0)