diff options
| author | Ece Cinucen <ece.cinucen@qt.io> | 2025-02-25 14:14:06 +0100 |
|---|---|---|
| committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2025-02-26 12:16:24 +0000 |
| commit | 01a5f5127a10e7b374e0d585ea349513b99b64ae (patch) | |
| tree | e7569cf14984fed0a87504f390c7d7409dbdd095 /sources/pyside6 | |
| parent | df9e50ca8f48031b66e9791e8e8f5229f0a5a960 (diff) | |
type hints: Fix Slot() type annotation
The restricting type annotation for call function in Slot class is updated to more flexible one.
Task-number: PYSIDE-2846
Change-Id: Ic26ebb42bb6bfe4f4d0455125ac92b3552c62d06
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit 34b812b6495681d088ce3294a709f25085f6ed87)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'sources/pyside6')
| -rw-r--r-- | sources/pyside6/libpyside/pysideslot.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside6/libpyside/pysideslot.cpp b/sources/pyside6/libpyside/pysideslot.cpp index 5232b4e4c..135f83b1e 100644 --- a/sources/pyside6/libpyside/pysideslot.cpp +++ b/sources/pyside6/libpyside/pysideslot.cpp @@ -168,7 +168,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.__call__(self,function:typing.Callable[[typing.Any],typing.Any])->typing.Any", + "PySide6.QtCore.Slot.__call__(self,function:typing.Callable[...,typing.Any])->typing.Any", nullptr}; // Sentinel void init(PyObject *module) |
