You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling ButtonInnotationExtended(description='save', on_click=None, icon='save') would fail with the exception TypeError: object.__init__() takes exactly one argument (the instance to initialize).
When adding the
DataMixin
class (PR: #14), the inheritence of most of the classes in the repo have not been set properly.An failing example:
Calling
ButtonInnotationExtended(description='save', on_click=None, icon='save')
would fail with the exceptionTypeError: object.__init__() takes exactly one argument (the instance to initialize)
.After reading this very good blog posts: Python’s super() considered super! and Cooperative multiple-inheritance paradigm in python, it seems that there is a better way to propagate unknown arguments through the class inheritance tree.
The text was updated successfully, but these errors were encountered: