summaryrefslogtreecommitdiff
path: root/doc/data/messages/t/too-many-instance-attributes/bad.py
blob: 0892a08799c6bfac18b6b267ca548dc4af5695cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class Fruit:  # [too-many-instance-attributes]
    def __init__(self):
        # max of 7 attributes by default, can be configured
        self.worm_name = "Jimmy"
        self.worm_type = "Codling Moths"
        self.worm_color = "light brown"
        self.fruit_name = "Little Apple"
        self.fruit_color = "Bright red"
        self.fruit_vitamins = ["A", "B1"]
        self.fruit_antioxidants = None
        self.secondary_worm_name = "Kim"
        self.secondary_worm_type = "Apple maggot"
        self.secondary_worm_color = "Whitish"