Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
None
-
5.15.1
-
None
Description
We can''t use ABC ( https://docs.python.org/3/library/abc.html ) with pyside :
from abc import ABC from PySide2.QtCore import QObject class Abstract(ABC): pass class Concrete(Abstract, QObject): pass line 7, in <module> TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases
there somethings about PyQt5 https://stackoverflow.com/questions/46837947/how-to-create-an-abstract-base-class-in-python-which-derived-from-qobject
but PySide 2 doesn't have pyqtWrapperType
Attachments
Issue Links
- relates to
-
PYSIDE-1767 Pyside6/Shiboken and ABCMeta Bug
- Reported
-
PYSIDE-1613 Unexpected behavior with inheritance and properties
- Closed
-
PYSIDE-1564 QObject does not support cooperative multiple inheritance
- Closed