title: TypeError: generator() missing 1 required positional argument: 'json'
body: <p>Error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "...", line ..., in main
      output_call = output.generator(json_text)
  TypeError: generator() missing 1 required positional argument: 'json'
  </code></pre>
  
  <p>My code:</p>
  
  <pre><code>class TOTALTIME:
      def generator(self, json):
          self._json = json
          print('{} minutes'.format(int(self._json['route']['time']/60)))
  </code></pre>
  
  <p>My for loop is iterating through a list of classes that I made through a dictionary.</p>
  
  <pre><code>for output in output_list:
      output_call = output.generator(json_text)
      print(output_call)
  </code></pre>
  
  <p>Here's the function that creates the classes:</p>
  
  <pre><code>def list_of_outputs(n_outputs: int) -&gt; 'values':
      d = {}
      e = {'STEPS': output_classes.STEPS,
       'LATLONG': output_classes.LATLONG,
       'TOTALTIME': output_classes.TOTALTIME,
       'TOTALDISTANCE': output_classes.TOTALDISTANCE,
       'ELEVATION': output_classes.ELEVATION }
  
      for output in range(n_outputs):
          add_output = input()
          if add_output in e.keys():
              d.update(e)
      return d.values()
  </code></pre>