Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Answer

Post Made Community Wiki
Source Link
wjandrea
  • 34k
  • 10
  • 69
  • 107

You have to use super() for invoking inherited methods either consistently, or not at all. And you can't use it consistently in cases like this, that involve multiple inheritance and parameter lists that aren't the same as the inherited version of the method. There are probably other solutions, but I'd suggest replacing all super()s with the explicit name of the parent class, as you did in ScientificSwimmer.__init__().

-- comment by jasonharper

lang-py

AltStyle によって変換されたページ (->オリジナル) /