Details
Description
This is specific to the new Pyside6 package. Pyside2 does not have this issue.
When attempting to create an abstract class combining JSON and QObject classes Shiboken throws:
{{ c:\python\python39\lib\abc.py in _new_(mcls, name, bases, namespace, **kwargs) 104 """
105 def _new_(mcls, name, bases, namespace, **kwargs):
--> 106 cls = super()._new_(mcls, name, bases, namespace, **kwargs)
107 _abc_init(cls)
108 return cls
TypeError: Shiboken.ObjectType._new(JsonSettingsQtMeta) is not safe, use type.new_()}}
Attaching minimal examples showing the issue. Some duplicated/modified from:
https://bugreports.qt.io/browse/PYSIDE-1051
Attachments
Issue Links
- relates to
-
PYSIDE-1051 Unable to call QtCore.QObject.__new__ in Python 2.7
- Closed
-
PYSIDE-1434 can't use ABC with Pyside2
- Closed
-
PYSIDE-2746 Regression: PySide 6.7 segfaulting with metaclass and asyncio
- Closed
-
PYSIDE-2202 pyside6-metaobjectdump fails on metaclass
- Closed