From 07d557fedf40ceb7f8dcd25cf042ccf97542d8fe Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Thu, 28 Jul 2016 03:17:29 +0300 Subject: [PATCH] Fix typo in PEP 487 --- pep-0487.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pep-0487.txt b/pep-0487.txt index 947f35c5f28..1fe6ff68551 100644 --- a/pep-0487.txt +++ b/pep-0487.txt @@ -142,7 +142,7 @@ Initializing descriptors could simply be done in the ``__init_subclass__`` hook. But this would mean that descriptors can only be used in classes that have the proper hook, the generic version like in the example would not work generally. One could also call -``__set_name__`` from whithin the base implementation of +``__set_name__`` from within the base implementation of ``object.__init_subclass__``. But given that it is a common mistake to forget to call ``super()``, it would happen too often that suddenly descriptors are not initialized.