Skip to content

Commit ab01497

Browse files
Removed ambiguity in __init_subclass__ docs (GH-31540)
1 parent 8debeed commit ab01497

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
@@ -1971,7 +1971,7 @@ Customizing class creation
19711971
--------------------------
19721972

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

0 commit comments

Comments
 (0)