| Tor Norbye | 3a2425a | 2013-11-04 10:16:08 -0800 | [diff] [blame^] | 1 | class B1: |
| 2 | def foo(self, *args, **kwargs): | ||||
| 3 | raise NotImplementedError() | ||||
| 4 | |||||
| 5 | |||||
| 6 | class C1(B1): | ||||
| 7 | def foo(self): # pass | ||||
| 8 | pass | ||||
| 9 | |||||
| 10 | |||||
| 11 | class C2(B1): | ||||
| 12 | def foo(self, arg1): # pass | ||||
| 13 | pass | ||||
| 14 | |||||
| 15 | |||||
| 16 | class B3: | ||||
| 17 | def foo(self, arg1, *args, **kwargs): | ||||
| 18 | raise NotImplementedError() | ||||
| 19 | |||||
| 20 | |||||
| 21 | class C3(B3): | ||||
| 22 | def foo<warning descr="Signature of method 'C3.foo()' does not match signature of base method in class 'B3'">(self, arg1, arg2=None)</warning>: # fail | ||||
| 23 | pass | ||||