-
Bug
-
Resolution: Won't Do
-
P4: Low
-
None
-
6.5.3
-
None
The following code example shows, that comparing a Qt.GlobalColor with a QColor works as expected:
from PySide6.QtCore import Qt
from PySide6.QtGui import QColor
global_color = Qt.GlobalColor.red
color = QColor(Qt.GlobalColor.red)
print(
f"QColor {color} and Qt.GlobalColor {global_color} are equal: {global_color == color}"
)
Nevertheless, mypy prints the following error:
error: Non-overlapping equality check (left operand type: "GlobalColor", right operand type: "QColor") [comparison-overlap]