Sorry, something went wrong.
|
Also looking into Subplot, which has multiple inheritance. For reference: class Foo:
def __init__(self):
super().__init__()
print("init Foo")
class Bar():
def __init__(self):
super().__init__()
print("init Bar")
class Spam(Bar, Foo):
def __init__(self):
super().__init__()
print("init Spam")
Spam()
Produces: init Foo
init Bar
init Spam
|
Sorry, something went wrong.
|
There's a lot of multiple inheritance when you get to the plots and graphics, and that results in some juggling with super and direct calls to SomeSuperclass.__init__. Will not burn my hands on that right now. Let's keep this pr small 😅 |
Sorry, something went wrong.
These caught my eye in my earlier review. Simple fix that makes the code a bit simplere / easier to read, but possibly also avoids bugs.
Context:
Produces:
Replacing the super() in Spam with super(Spam, self).__init__() produces the same result.
But if it is replaced with super(Foo, self).__init__(), it produces: