TypeError: got multiple values for argument

前端 未结 7 2283
忘掉有多难
忘掉有多难 2020-11-28 06:13

I read the other threads that had to do with this error and it seems that my problem has an interesting distinct difference than all the posts I read so far, namely, all the

相关标签:
7条回答
  • 2020-11-28 06:38

    I had the same problem that is really easy to make, but took me a while to see through.

    I had copied the declaration to where I was using it and had left the 'self' argument there, but it took me ages to realise that.

    I had

    self.myFunction(self, a, b, c='123')
    

    but it should have been

    self.myFunction(a, b, c='123')
    
    0 讨论(0)
提交回复
热议问题