Details
-
Bug
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
6.8.1
-
None
Description
The following code does not type-check:
from PySide6.QtCore import QObject, Slot class MyClass(QObject): @Slot(int) def print_number(self, number: int) -> None: ...
Another example:
from PySide6.QtCore import QObject, Slot class MyClass(QObject): @staticmethod @Slot() def print_number() -> None: ...
sources/pyside6/libpyside/pysideslot.cpp:170, solution proposal at duplicate PYSIDE-2977 .
Attachments
Issue Links
- is duplicated by
-
PYSIDE-2977 Callable type hint for Slot is over constrained
-
- Closed
-
-
PYSIDE-3006 mypy error on @Slot() annotated methods
-
- Closed
-
-
PYSIDE-2214 slots types by type hints.
-
- Closed
-
- relates to
-
PYSIDE-3012 QtCore.pyi: Improving type annotations
-
- Open
-
-
PYSIDE-2969 Type hint for anything ColorScheme fails
-
- Closed
-