summaryrefslogtreecommitdiff
path: root/doc/data/messages/n/non-parent-init-called/bad.py
blob: 75254db824f828d719f1b29ef24404b42120171c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class Animal:
    def __init__(self):
        self.is_multicellular = True


class Vertebrate(Animal):
    def __init__(self):
        super().__init__()
        self.has_vertebrae = True


class Cat(Vertebrate):
    def __init__(self):
        Animal.__init__(self)  # [non-parent-init-called]
        self.is_adorable = True