Files
openide/python/testData/override/instanceCheck_after.py
Andrey Vlasovskikh b0b03f3a45 Don't use function annotations in overridden functions in Python 2
Python stubs use Python 3 syntax so it could be the case that a Python 2
class inherits a Python 3 class.
2017-02-02 01:29:37 +03:00

4 lines
149 B
Python

class MyType(type):
def __instancecheck__(self, instance):
<selection>return super(MyType, self).__instancecheck__(instance)</selection>