code: def hacking_no_old_style_class(logical_line, noqa):
      r
      if noqa:
          return
      line = core.import_normalize(logical_line.strip())
      if line.startswith("class ") and not RE_NEW_STYLE_CLASS.match(line):
              yield (0, "H238: old style class declaration, "
                     "use new style (inherit from `object`)")
docs: r"""Check for old style classes.
  
      Examples:
      Okay: class Foo(object):\n    pass
      Okay: class Foo(Bar, Baz):\n    pass
      Okay: class Foo(object, Baz):\n    pass
      Okay: class Foo(somefunc()):\n    pass
      H238: class Bar:\n    pass
      H238: class Bar():\n    pass