When I try to create an instance of an object from a class that inherits from other class I keep getting this error
TypeError: super() takes at least 1 argument (0 given)
If I don't create any instances then it runs. Found this question where it suggested to check python version. From what I see in the terminal I have Python 3.8.1 . Even when I try just copy and use a code from this guide, it doesn't work and I get the same answer.
Here's the code:
class Developer(Employee):
raise_amount = 1.10
def __init__(self,first,last,pay,prog_lang):
super().__init__(first,last,pay)
self.prog_lang = prog_lang
emp_1 = Developer('Corey','Schafer',50000,'S')
But if I use
Employee.__init__(self,first,last,pay)
instead of super()
it does work.