Python super(): Misspelled method names raise AttributeError

Python super(): Misspelled method names raise AttributeError

Misspelled the method you invoke via super() in a Python method? It’s a runtime error:

class Child(Parent):
    def x(self):
        total = super().y()  # oops!
        return f'Parent reported {total}'

We get:

AttributeError: ‘super’ object has no attribute ‘y’