no-inherit-from-object¶
In Python 3, a class is inherited from object by default.
Explicitly inheriting from object is redundant, so removing it keeps the code simpler.
Message¶
Inheriting from object is a no-op. ‘class Foo:’ is just fine =)
Valid examples¶
class A(something): pass
class A:
pass
Invalid examples¶
class B(object):
pass
Suggested fix
class B:
pass
Show more
class B(object, A):
pass
Suggested fix
class B(A):
pass