Python `__bases__`: Every class inherits from object

Python `__bases__`: Every class inherits from object

By default, every Python class inherits from “object”.

You can see this by checking the __bases__ attribute on a class:

class C:
    pass
print(C.__bases__) # prints (<class 'object'>,)

__bases__ is a tuple — hinting (correctly) that Python supports multiple inheritance.