setools/setoolsgui/widgets/models/typing.py
Chris PeBenito 7e9d0fded9 Update to PyQt6.
Signed-off-by: Chris PeBenito <pebenito@ieee.org>
2024-02-14 09:11:35 -05:00

21 lines
431 B
Python

# SPDX-License-Identifier: LGPL-2.1-only
import abc
from PyQt6 import QtCore
QObjectType: type = type(QtCore.QObject)
class MetaclassFix(QObjectType, abc.ABC):
"""
Fix metaclass issues.
Use this when doing a Generic[] with a PyQt type. Fixes this error:
TypeError: metaclass conflict: the metaclass of a derived class must be a
(non-strict) subclass of the metaclasses of all its bases
"""
pass