Tor Norbye | 3a2425a5 | 2013-11-04 10:16:08 -0800 | [diff] [blame] | 1 | class MyType1(type): |
| 2 | def __instancecheck__(cls, instance): |
| 3 | return True |
| 4 | |
| 5 | |
| 6 | class MyType2(type): |
| 7 | def __instancecheck__<warning descr="Signature of method 'MyType2.__instancecheck__()' does not match signature of base method in class 'type'">(cls)</warning>: |
| 8 | return True |
| 9 | |
| 10 | |
| 11 | class MyType3(type): |
| 12 | def __instancecheck__<warning descr="Signature of method 'MyType3.__instancecheck__()' does not match signature of base method in class 'type'">(cls, foo, bar)</warning>: |
| 13 | return True |