Skip to content

Files

Latest commit

 

History

History
23 lines (16 loc) · 502 Bytes

super-with-arguments.md

File metadata and controls

23 lines (16 loc) · 502 Bytes

Pattern: Use of super() with arguments

Issue: -

Description

Emitted when calling the super() builtin with the current class and instance. On Python 3 these arguments are the default and they can be omitted.

Example of incorrect code:

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

Example of correct code:

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