__init__
method from the base class not called PYL-W0231329
330
331class Gadget(GadgetMatrix):
332 def __init__(self, arch, instList=None, max_cost=64):333
334 self.instList = instList or []
335 self.firstInst = instList[0] if instList else None
The ancestor class method has an init method which is not called by the derived class. This can cause unintended consequences.