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
MNT: parent args passed into Qt provided class __init__ should be
positional args not use keyword arguments
For context:
- Positional args: Func(1, 2)
- Keyword args: Func(a=1, b=2)
pyqt5 works still if we use the keyword argument 'parent' for super
calls to qt class __init__ calls, but pyside6 throws an error
(it generally seems a bit more strict about things).
You can inspect an __init__ call (ex: 'print(inspect.signature(QLabel.__init__))') to
see if/what keyword arguments are accepted by it.
The __init__ calls changed in this patch don't accept a 'parent' keyword arg,
just a positional arg for it.
0 commit comments