When attempting to call a static method in a superclass I can run code like:
super().doSomething()
in standard Python 3, but the same code doesn't run in Jupyter. The error message is
super(): no arguments
I've tried
super(SubClass).doSomething()
but then the error message is
name 'SubClass' is not defined
even though the code is running in a class named SubClass
.
What does work is
SuperClass.doSomething()
That's fine, but it means that making SubClass
a subclass of SuperClass
is not relevant.
All this is happening in static methods in both SubClass
and SuperClass
.
Am I missing something, or is there a fix for this?