Files
openide/python/testData/inspections/PyMethodOverridingInspection/DunderPrepare.py
Mikhail Golubev de08c2a947 Fix Python tests after the proofreading
GitOrigin-RevId: 2f6eb873d6321ef00d293377ec2c97195f72da21
2020-11-30 22:17:55 +00:00

16 lines
434 B
Python

class MyType1(type):
@classmethod
def __prepare__<warning descr="Signature of method 'MyType1.__prepare__()' does not match signature of the base method in class 'type'">(metacls, name)</warning>:
return {}
class MyType2(type):
@classmethod
def __prepare__(metacls, name, bases):
return {}
class MyType3(type):
@classmethod
def __prepare__(metacls, name, bases, **kwargs):
return {}