summaryrefslogtreecommitdiff
path: root/tests/functional/s/super_with_arguments.py
blob: ea8c0e4f1dab1221258e1159b3fd193a442a88a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
class Foo:
    pass


class Bar(Foo):
    def __init__(self):
        super(Bar, self).__init__()  # [super-with-arguments]


class Baz(Foo):
    def __init__(self):
        super().__init__()


class Qux(Foo):
    def __init__(self):
        super(Bar, self).__init__()


class NotSuperCall(Foo):
    def __init__(self):
        super.test(Bar, self).__init__()


class InvalidSuperCall(Foo):
    def __init__(self):
        super(InvalidSuperCall.__class__, self).__init__()