diff options
| author | Ece Cinucen <ece.cinucen@qt.io> | 2025-02-19 15:52:51 +0100 |
|---|---|---|
| committer | Ece Cinucen <ece.cinucen@qt.io> | 2025-02-27 17:02:21 +0100 |
| commit | 00a5b350ec3d6f552ad0753d9c8fdbde4464d9ad (patch) | |
| tree | c2eaad1be907faaa4e4797f0eca054ccfda829d5 /sources/pyside6/libpyside/pysideslot.cpp | |
| parent | f351f1e572d2712c735a361b08e45eeb4149f25f (diff) | |
Improve type annotations, first step
Import Callable, Iterable and Sequence from collections.abc,
since using them from typing is deprecated.
Pick-to: 6.8
Task-number: PYSIDE-3012
Change-Id: I131c00005df410fdaa40b338a2a728512269aaa0
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/pyside6/libpyside/pysideslot.cpp')
| -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 135f83b1e..eddbf3a93 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", + "PySide6.QtCore.Slot.__call__(self,function:collections.abc.Callable[...,typing.Any])->typing.Any", nullptr}; // Sentinel void init(PyObject *module) |
