setools/setoolsgui/widgets/models/typing.py
Chris PeBenito 40254914ae Split SEToolsTableModel and SEToolsListModel into separate modules.
Signed-off-by: Chris PeBenito <pebenito@ieee.org>
2024-01-31 10:11:55 -05:00

21 lines
431 B
Python

# SPDX-License-Identifier: LGPL-2.1-only
import abc
from PyQt5 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