1# python_version >= '3.5' 2#: N804:7:19 3class Foo(object): 4 @classmethod 5 async def mmm(cls, ads): 6 pass 7 8 @classmethod 9 async def bad(self, ads): 10 pass 11 12 @calling() 13 async def test(self, ads): 14 pass 15 16 async def __init_subclass(self, ads): 17 pass 18#: N804:3:20(--classmethod-decorators=clazzy,cool) 19class NewClassIsRequired(object): 20 @cool 21 async def test(self, sy): 22 pass 23#: N804 24class Meta(type): 25 async def __new__(self, name, bases, attrs): 26 pass 27#: Okay 28class MetaMethod(type): 29 async def test(cls): 30 pass 31#: Okay 32class NotMeta(object): 33 otherclass = Foo 34class AttributeParent(NotMeta.otherclass): 35 pass 36class CallParent(type('_tmp', (), {})): 37 pass 38