I have this python code:
class A:
def __init__(self, name):
self.name = name
class B(A):
def __init__(self):
super.__init__()
And I get the following error:
TypeError
Traceback (most recent call last)
<ipython-input-7-ea9745abfeb2> in <module>()
----> 1 C = B()
<ipython-input-4-2d2ef2cc5406> in __init__(self)
5 class B(A):
6 def __init__(self):
----> 7 super.__init__()
TypeError: descriptor '__init__' of 'super' object needs an argument