summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/class-super.py
blob: 6a87b2fd00c817af2924ff7e056f1ce7aab3b18f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
class Base:

    def meth(self):
        print("in Base meth")

class Sub(Base):

    def meth(self):
        print("in Sub meth")
        return super().meth()

a = Sub()
a.meth()