| Tor Norbye | 3a2425a | 2013-11-04 10:16:08 -0800 | [diff] [blame^] | 1 | class B: |
| 2 | def __init__(self): | ||||
| 3 | pass | ||||
| 4 | |||||
| 5 | def __new__(self): | ||||
| 6 | pass | ||||
| 7 | |||||
| 8 | def foo(self, a): | ||||
| 9 | pass | ||||
| 10 | |||||
| 11 | |||||
| 12 | class C(B): | ||||
| 13 | def __init__(self, a): # different but ok because __init__ is special | ||||
| 14 | pass | ||||
| 15 | |||||
| 16 | def __new__(self, p, q): # different but ok because __new__ is special | ||||
| 17 | pass | ||||
| 18 | |||||
| 19 | def foo<warning descr="Signature of method 'C.foo()' does not match signature of base method in class 'B'">(self, s, t)</warning>: | ||||
| 20 | pass | ||||