| Tor Norbye | a3e39ab | 2014-04-10 10:54:17 -0700 | [diff] [blame^] | 1 | import abc |
| 2 | |||||
| 3 | |||||
| 4 | class A(object): | ||||
| 5 | __metaclass__ = abc.ABCMeta | ||||
| 6 | |||||
| 7 | @abc.abstractproperty | ||||
| 8 | def foo(self): | ||||
| 9 | pass | ||||
| 10 | |||||
| 11 | |||||
| 12 | class <weak_warning descr="Class C must implement all abstract methods">C</weak_warning>(A): | ||||
| 13 | def bar(self): | ||||
| 14 | pass | ||||