- 
    
Bug
 - 
    Resolution: Done
 - 
    
P2: Important
 - 
    None
 - 
    6.0.1, 6.0.2, 6.1.1
 - 
    None
 
- 
        e1909dfdd4dcc0742600d04afcfb3017ae471a31 (pyside/pyside-setup/dev) 6a2e912deadc4b1ddbc18ba390822bcdb1724041 (pyside/pyside-setup/6.2)
 
The type signatures defined in the `.pyi` files are not as descriptive as they should be, causing mypy to error.
For example,
error: Argument 1 to "setForeground" of "QTextFormat" has incompatible type "GlobalColor"; expected "QBrush"
This shouldn't be an error - the code works perfectly fine.
Run mypy on the attached file to see more examples.
For error: "Slot" is not callable" see https://github.com/python/mypy/issues/10209
- is required for
 - 
                    
        
        PYSIDE-1675
        Improve mypy compatibility with our python stubs (pyi)
    
-         
 - Open
 
 -         
 
- relates to
 - 
                    
PYSIDE-1731 Reg->6.2.2/MyPy: Type of Qt.AlignmentFlag incompatible with Qt.Alignment
-         
 - Closed
 
 -         
 
| For Gerrit Dashboard: PYSIDE-1520 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V | 
| 339009,9 | Write conversions as typing.Union[] | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 | 
| 339051,2 | shiboken6: Fix AbstractMetaClass::fullName() for nested classes | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 | 
| 339149,2 | shiboken6: Fix AbstractMetaClass::fullName() for nested classes | 6.0 | pyside/pyside-setup | Status: MERGED | +2 | 0 | 
| 339150,3 | shiboken6: Fix AbstractMetaClass::fullName() for nested classes | tqtc/lts-5.15 | pyside/tqtc-pyside-setup | Status: MERGED | +2 | 0 | 
| 380884,4 | mypy-support: Improve handling of slots, enum and PathLike | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 | 
| 380972,3 | mypy-support: Improve handling of slots, enum and PathLike | 6.2 | pyside/pyside-setup | Status: MERGED | +2 | 0 |