Closed christian-krieg closed 2 years ago
Should have mentioned this in the first place; Calling super.__init__()
is necessary for multi-inheritance; if you derive a class from Node
and another class, both super-classes need to call super.__init__()
.
Should have mentioned this in the first place; Calling
super.__init__()
is necessary for multi-inheritance; if you derive a class fromNode
and another class, both super-classes need to callsuper.__init__()
.
Since Node
only inherits from object
that shouldn't be the case. Can you send an example of what you are trying to solve? There are also some issues and PRs trying to make Node
subclassable that should handle the implementation details.
Adding
super().__init__()
seems fine although unnecessary, butobject
doesn't take any parameters and will fail if you try to utilize**kwargs
here