-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
6.9.2
-
Windows 10 22H2, Python 3.12
-
d5811530d (dev), 6d44a1a50 (6.10)
Currently, if a signal/slot uses QVariant as an argument or return value, then we need to specify the QVariant type as a string. For example:
@Slot(result='QVariant')
However, this leads to a mypy error (see attached project):
main.py:22: error: Argument "result" to "Slot" has incompatible type "str"; expected "type | None" [arg-type]
- relates to
-
PYSIDE-2942 Type hints: Slot() annotations fails in different cases
-
- Closed
-
For Gerrit Dashboard: PYSIDE-3174 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
682327,3 | type hints: Fix type annotations of QtCore.Slot | dev | pyside/pyside-setup | Status: MERGED | +2 | +1 |
682383,2 | type hints: Fix type annotations of QtCore.Slot | 6.10 | pyside/pyside-setup | Status: MERGED | +2 | 0 |