Skip to content

Remove trivial super() args

Leo P. Singer requested to merge leo-singer/ligo.skymap:remove-super-args into master

In most cases, in Python 3, it is not necessary to pass any arguments to super(). The following two class definitions are equivalent:

class Foo(Bar):
    def bat(self, baz):
        super(Foo, self).bat(baz)

class Foo(Bar):
    def bat(self, baz):
        super().bat(baz)

It is still necessary to pass explicit arguments to super() if it is used outside of a class definition.

Edited by Leo P. Singer

Merge request reports

Loading