I can reproduce this case with the following (invalid) snippet:
class Foo(object): return
All versions of Python.
I can reproduce this case with the following (invalid) snippet:
class Foo(object):
return
All versions of Python.