Removed ambiguity in __init_subclass__ docs (GH-31540)

This commit is contained in:
David Gilbertson 2022-03-08 15:13:01 +11:00 committed by GitHub
parent 8debeed307
commit ab014978ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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