How to handle multiple inheritance in python when parent init functions accept different numbers of arguments
<p>I have a class that inherits from 2 other classes, one of which has accepts an init argument. How do I properly initialize the parent classes?</p>

<p>So far I have:</p>

<pre><code>class A(object):
    def __init__(self, arg1):
        self.arg1 = arg1

class B(object):
    def  __init__(self):
         pass

class C(A, B):
     def __init__(arg1):
          super(C, self).__init__(arg1)
</code></pre>

<p>But this throws a <code>TypeError</code> as <code>B</code> doesn't receive an argument.</p>

<p>In context, <code>B</code> is the proper parent of <code>C</code>, whilst <code>A</code> is a mixin that many classes in the project inherit functionality from. </p>

<p>You can call the <code>__init__</code> of the parent classes manually.</p>

<pre><code>class C(A, B):
     def __init__(arg1):
          A.__init__(self,arg1)
          B.__init__(self)
</code></pre>

python multiple-inheritance