aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6
diff options
context:
space:
mode:
authorEce Cinucen <ece.cinucen@qt.io>2025-10-06 13:40:15 +0300
committerEce Cinucen <ece.cinucen@qt.io>2025-10-06 11:52:37 +0000
commitd5811530d1120c60e2125ccd34565982f72de530 (patch)
treed92559ca82b410af9a88ce5e876fcce64b151b64 /sources/pyside6
parentc630f1c87a77ccd7fb80782d48743e70dec56ae0 (diff)
type hints: Fix type annotations of QtCore.Slot
This change updates the function signature to typing.Union[type, str] for both types and result. Pick-to: 6.10 Fixes: PYSIDE-3174 Change-Id: Ic034ed725d774d94513d75014499667b6d7acdce Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside6')
-rw-r--r--sources/pyside6/libpyside/pysideslot.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside6/libpyside/pysideslot.cpp b/sources/pyside6/libpyside/pysideslot.cpp
index 9725b130d..f7c7857ea 100644
--- a/sources/pyside6/libpyside/pysideslot.cpp
+++ b/sources/pyside6/libpyside/pysideslot.cpp
@@ -173,7 +173,7 @@ DataList *dataListFromCapsule(PyObject *capsule)
}
static const char *Slot_SignatureStrings[] = {
- "PySide6.QtCore.Slot(self,*types:type,name:str=nullptr,result:type=nullptr)",
+ "PySide6.QtCore.Slot(self,*types:typing.Union[type,str],name:str=nullptr,result:typing.Union[type,str]=nullptr)",
"PySide6.QtCore.Slot.__call__(self,function:collections.abc.Callable[...,typing.Any])->typing.Any",
nullptr}; // Sentinel