title: TypeError: __init__() missing 1 required positional argument in subclass
body: <p>I have values in a nested table. I need to do some calculations and get the results. The classes are organized in <code>script1.py</code> and <code>script2.py</code>.</p>
  
  <p>There is the superclass <code>Values</code>, which reads each row in the list and converts them into numpy arrays.</p>
  
  <p>There is also the subclass <code>Dimensions</code>, which inherits the arrays from <code>Values</code> and does the calculations.</p>
  
  <p>The code operates with the table and gets the results, but doesn’t work. I get the error message:</p>
  
  <blockquote>
    <p><strong>init</strong>() missing 1 required positional argument: 'tbl'</p>
  </blockquote>
  
  <p><code>script1.py</code>:</p>
  
  <pre><code>import numpy as np
  
  class Values:
      def __init__(self, tbl):
          self.tbl = tbl
  
      def get_val_a(self):
          val_a = np.array(self.tbl[0])
          return val_a
  
      def get_val_b(self):
          val_b = np.array(self.tbl[1])
          return val_b
  
      def get_val_c(self):
          val_c = np.array(self.tbl[2])
          return val_c
  </code></pre>
  
  <p><code>script2.py</code>:</p>
  
  <pre><code>from script1 import Values
  
  val = Values()
  
  class Dimensions(Values):
  
      def __init__(self, tbl):
          super().__init__(tbl)
  
      def get_dim_a(self):
          dim_a = 2 * val.get_val_a()
          return dim_a
  
      def get_dim_b(self):
          dim_b = 2 * val.get_val_b()
          return dim_b
  
      def get_dim_c(self):
          dim_c = 2 * val.get_val_c()
          return dim_c
  </code></pre>
  
  <p><code>script3.py</code>:</p>
  
  <pre><code>from script2 import Dimensions
  
  table = [[1, 2, 3],
           [1, 4, 9],
           [1, 8, 27]]
  
  dim = Dimensions()
  
  dim_1 = dim.get_dim_a()
  dim_2 = dim.get_dim_b()
  dim_3 = dim.get_dim_c()
  print('Dimensions: ', dim_1, dim_2, dim_3)
  </code></pre>