summaryrefslogtreecommitdiff
path: root/tests/functional/s/super/super_without_brackets.py
blob: 7591713f980cd30fe745a1d591c1ca036bca245d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
"""Tests for super-without-brackets"""

# pylint: disable=missing-function-docstring, missing-class-docstring, too-few-public-methods


class Soup:
    @staticmethod
    def temp():
        print("Soup is hot!")


class TomatoSoup(Soup):
    @staticmethod
    def temp():
        super.temp()  # [super-without-brackets]
        print("But tomato soup is even hotter!")


class VegetableSoup(Soup):
    @staticmethod
    def temp():
        super().temp()
        print("But vegetable soup is even hotter!")