title: Importing function in Python class got TypeError multiple values for argument
body: <p>Running the Dummy.py file produced the error:</p>
  <p><code>TypeError: create_scene_tab() got multiple values for argument 'initial_data_filepath'</code></p>
  <p>Dummy.py</p>
  <pre><code>class A:
      from dum2 import create_scene_tab
  
      def __init__(self):
          pass
  
      def create_DataCollectionPreview_tab(self, filepath: str):
          self.create_scene_tab(self, &quot;Data Collection Preview&quot;,
                                initial_data_filepath=filepath)
  
  
  a = A()
  a.create_DataCollectionPreview_tab(&quot;a.txt&quot;)
  </code></pre>
  <p>dum2.py</p>
  <pre><code>def create_scene_tab(self, key, initial_data_filepath: str = &quot;&quot;):
      print(initial_data_filepath)
  </code></pre>
  <p>But if I add an additional argument in <code>create_scene_tab()</code> so it becomes:</p>
  <p>dum2.py</p>
  <pre><code>def create_scene_tab(self, another_arg, key, initial_data_filepath: str = &quot;&quot;):
      print(initial_data_filepath)
  </code></pre>
  <p>The error goes away. Why?</p>
  <p>Please don't ask why I am importing and calling it the way it is. I am just simplifying a big program (Python 3.6.8).</p>