Details
Description
I have the following minimum test code
from PySide6.QtCore import * from PySide6.QtWidgets import * from PySide6.QtWidgets import * class Ui_Form(object): pass class Mixin: def __init__(self, **kwargs) -> None: super().__init__(**kwargs) class Card(Mixin, QWidget): def __init__(self, parent=None) -> None: super().__init__(parent=parent) class Demo(Card, Ui_Form): def __init__(self) -> None: super().__init__() app = QApplication([]) d = Demo()
And this code will get
TypeError: object._init_() takes exactly one argument (the instance to initialize)
in PySide6.6.2 but work correctly in PySide6.4.2
Attachments
Issue Links
- relates to
-
PYSIDE-2282 QMainWindow and multiple inheritance from QWidget
- Closed
-
PYSIDE-1564 QObject does not support cooperative multiple inheritance
- Closed
-
PYSIDE-2844 Multiple inheritance gives TypeError in __init__
- Closed