-
Bug
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
6.9.2
-
Windows 10 22H2, Python 3.12
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
-