

def test_new_style_classes(self):
    statement = '\n      class OldStyle:\n        pass\n\n      class NewStyle(object):\n        pass\n    '
    self.assertNit(self, 'T606')
    statement = '\n      class NewStyle(OtherThing, ThatThing, WhatAmIDoing):\n        pass\n    '
    self.assertNoNits(statement)
    statement = '\n      class OldStyle():  # unspecified mro\n        pass\n    '
    self.assertNit(statement, 'T606')

dataset/ETHPy150Open pantsbuild/pants/contrib/python/tests/python/pants_test/contrib/python/checks/tasks/checkstyle/test_new_style_classes.py NewStyleClassesTest.test_new_style_classes/VarMisuse@18/53 `statement`->`self`