- 
    
Bug
 - 
    Resolution: Fixed
 - 
    
P2: Important
 - 
    6.3.0
 - 
    None
 
- 
        
 - 
        94869cf1c (dev), d8438d0a3 (6.6), e915e3aef (tqtc/lts-6.5), 14048ad66 (tqtc/lts-6.2), c85b0457a (tqtc/6.5.5)
 
According to the doc `QObject` offer the method `tr`.
This is working as expected
from PySide6.QtCore import QObject print(QObject().tr('hello'))
>python foo.py hello
but `mypy` doesn't recognize the method:
>mypy foo.py foo.py:2: error: "QObject" has no attribute "tr" Found 1 error in 1 file (checked 1 source file)
- is cloned by
 - 
                    
PYSIDE-2307 QObject missing member in interface definition
-         
     - Closed
 
 -         
 
- relates to
 - 
                    
PYSIDE-1329 QObject.tr() function parameters is not consistent with python stubs
-         
 - Closed
 
 -         
 - 
                    
PYSIDE-2408 Pyright doesn't recognize that QDate can be ordered
-         
 - In Progress
 
 -         
 - 
                    
        
        PYSIDE-1675
        Improve mypy compatibility with our python stubs (pyi)
    
-         
 - Open
 
 -         
 
| For Gerrit Dashboard: PYSIDE-1955 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V | 
| 494393,7 | signature: Add support for classmethods | dev | pyside/pyside-setup | Status: MERGED | -1 | 0 | 
| 543025,2 | signature: Add support for classmethods | 6.6 | pyside/pyside-setup | Status: MERGED | -1 | 0 | 
| 543037,2 | signature: Add support for classmethods | tqtc/lts-6.5 | pyside/tqtc-pyside-setup | Status: MERGED | -1 | 0 | 
| 543182,2 | signature: Add support for classmethods | tqtc/lts-6.2 | pyside/tqtc-pyside-setup | Status: MERGED | -1 | 0 | 
| 543392,3 | signature: Add support for classmethods | tqtc/6.5.5 | pyside/tqtc-pyside-setup | Status: MERGED | -1 | 0 |