super() fails with error: TypeError “argument 1 must be type, not classobj” when parent does not inherit from object

Your problem is that class B is not declared as a “new-style” class. Change it like so: and it will work. super() and all subclass/superclass stuff only works with new-style classes. I recommend you get in the habit of always typing that (object) on any class definition to make sure it is a new-style class. Old-style classes (also … Read more