Codacy bad First argument given to super

Published: 5/10/2017
Codacy bad First argument given to super
Source: STACKOVERFLOW.COM

While reviewing some code through codacy, Codacy gave an issue for the following piece of code: def MyClass(OldClass): def __init__(self, arg1, arg2, *args, **kwargs) self.arg1 = arg1 self.arg2 = arg2 super(MyClass, self).__init__(*args, **kwargs) With the following explanation: Why is this an issue? For example, calling super() with the base class as first argument is wrong: class AnotherOldStyle

Read more
Related news
Comment