- 
    Bug 
- 
    Resolution: Fixed
- 
    P3: Somewhat important 
- 
    6.8.0, 6.8.0.1
- 
    None
- 
        d99a314f7 (dev), a529e7327 (6.8), 6bc526d4f (6.8.0), b030c8500 (tqtc/6.8.0)
PYSIDE-2742 seems to have been reintroduced with 6.8.0. Trying to assign one of the QColorConstants to a variable hinted as a QColor results in the mypy error:
error: Incompatible types in assignment (expression has type "EllipsisType", variable has type "QColor") [assignment]
MRE:
from PySide6 import QtGui var: QtGui.QColor var = QtGui.QColorConstants.Red
This did not happen in the previous version (6.7.3). It was not fixed in 6.8.0.1.
Recreating the issue as I don't have the permissions required to reopen the old one.
I'm running mypy-1.12.1 on Python 3.12.3.
- relates to
- 
                    PYSIDE-2742 QColorConstants.Svg type hints are invalid. -           
- Closed
 
-         
| For Gerrit Dashboard: PYSIDE-2903 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V | 
| 598955,3 | type hints: Avoid double # for pyi type specification | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 | 
| 598985,2 | type hints: Avoid double # for pyi type specification | 6.8 | pyside/pyside-setup | Status: MERGED | +2 | 0 | 
| 599061,2 | type hints: Avoid double # for pyi type specification | 6.8.0 | pyside/pyside-setup | Status: MERGED | +2 | 0 | 
| 599311,2 | type hints: Avoid double # for pyi type specification | tqtc/6.8.0 | pyside/tqtc-pyside-setup | Status: MERGED | +2 | 0 |