Remove trivial super() args
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