super(type, obj): obj must be an instance or subtype of type

python

Solution

Another way this error can occur is when you reload the module with the class in a Jupiter notebook.

Easy solution is to restart the kernel.

http://thomas-cokelaer.info/blog/2011/09/382/

Check out @Mike W's answer for more detail.

Problem

Why do I get the following error, and how do I resolve it? TypeError: super(type, obj): obj must be an instance or subtype of type

Original source

Related problems