title: overloading methods in python class
body: <p>I tried to add numpy arrays in method overloading but got error like TypeError: add() missing 1 required positional argument: 'n3'</p>
  
  <pre><code>import numpy as np
  class addition:
      def add(self,n1,n2):
          return n1+n2
      def add(self,n1,n2,n3):
          return n1+n2+n3
  s=np.array([[1,2,3],[3,4,4]])
  s1=np.array([[1.0,2,3],[3,4,4]])
  s3=np.array([[1.0,2.4,3.7],[3,4,4]])
  c=addition()
  print(c.add(1,2))
  </code></pre>