mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Tests for @abstractproperty by Jeffrey Yasskin.
(The previous changes to abc.py were also by him). Put back a comment about using super() for properties (I didn't realize this worked).
This commit is contained in:
parent
46334cdae8
commit
70d2b890de
2 changed files with 36 additions and 18 deletions
|
@ -30,6 +30,8 @@ class abstractproperty(property):
|
|||
Requires that the metaclass is ABCMeta or derived from it. A
|
||||
class that has a metaclass derived from ABCMeta cannot be
|
||||
instantiated unless all of its abstract properties are overridden.
|
||||
The abstract properties can be called using any of the the normal
|
||||
'super' call mechanisms.
|
||||
|
||||
Usage:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue