I'm learning multiple inheritance of class
class A():
def __init__(self, a):
super().__init__()
self.a = a
class B():
def __init__(self, b):
super().__init__()
self.b = b
class C(A, B):
def __init__(self, a, b, c):
super().__init__(a, b)
self.c = c
C(1, 2, 3)
leads to error
TypeError: __init__() takes 2 positional arguments but 3 were given
I wish it can initialize in order A->B->C, I still get stuck after looking up existed related questions