summaryrefslogtreecommitdiff
path: root/doc/data/messages/s/super-init-not-called/bad.py
blob: b0e0c4c85be4743e9c0ef592082a2f8f8e78bda8 (plain)
1
2
3
4
5
6
7
8
9
class Fruit:
    def __init__(self, name="fruit"):
        self.name = name
        print("Creating a {self.name}")


class Apple(Fruit):
    def __init__(self):  # [super-init-not-called]
        print("Creating an apple")