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
-
For Gerrit Dashboard: PYSIDE-2654 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
551773,6 | Implement multiple inheritance correctly, 2nd. amendment | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
551828,2 | Implement multiple inheritance correctly, 2nd. amendment | 6.7 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
551835,2 | Implement multiple inheritance correctly, 2nd. amendment | 6.6 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
551904,5 | Implement multiple inheritance correctly, 2nd. amendment | tqtc/lts-6.5 | pyside/tqtc-pyside-setup | Status: MERGED | -1 | 0 |