Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
None
-
6.x
-
None
-
bab4f34755 (pyside/pyside-setup/dev) bab4f34755 (pyside/tqtc-pyside-setup/dev) 7fe9b97640 (pyside/pyside-setup/6.3) e300795e43 (pyside/tqtc-pyside-setup/6.2) 7fe9b97640 (pyside/pyside-setup/wip/6.3_pypy) 7fe9b97640 (pyside/tqtc-pyside-setup/6.3)
Description
When comparing a PySide6.QtCore.Qt.ItemFlags value with a None value, it results in a TypeError.
>>> from PySide6.QtCore import Qt >>> Qt.ItemIsEnabled != None True >>> Qt.ItemIsEnabled | Qt.ItemIsSelectable != None Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: bad argument type for built-in operation >>>
I didn't expect a TypeError to occur here.