Details
-
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)
Description
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)
Attachments
Issue Links
- 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