aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6')
-rw-r--r--sources/pyside6/libpyside/pysideproperty.cpp22
-rw-r--r--sources/pyside6/libpyside/pysideslot.cpp2
-rw-r--r--sources/pyside6/libpysideqml/pysideqmllistproperty.cpp7
3 files changed, 19 insertions, 12 deletions
diff --git a/sources/pyside6/libpyside/pysideproperty.cpp b/sources/pyside6/libpyside/pysideproperty.cpp
index 6ba76200a..bbc289231 100644
--- a/sources/pyside6/libpyside/pysideproperty.cpp
+++ b/sources/pyside6/libpyside/pysideproperty.cpp
@@ -470,16 +470,20 @@ static PyObject *getFromType(PyTypeObject *type, PyObject *name)
namespace PySide::Property {
static const char *Property_SignatureStrings[] = {
- "PySide6.QtCore.Property(self,type:type,fget:typing.Callable=None,fset:typing.Callable=None,"
- "freset:typing.Callable=None,fdel:typing.Callable=None,doc:str=None,"
- "notify:typing.Callable=None,designable:bool=True,scriptable:bool=True,"
+ "PySide6.QtCore.Property(self,type:type,"
+ "fget:typing.Optional[typing.Callable[[typing.Any],typing.Any]],"
+ "fset:typing.Optional[typing.Callable[[typing.Any,typing.Any],None]],"
+ "freset:typing.Optional[typing.Callable[[typing.Any,typing.Any],None]],"
+ "doc:str=None,"
+ "notify:typing.Optional[typing.Callable[[],None]],"
+ "designable:bool=True,scriptable:bool=True,"
"stored:bool=True,user:bool=False,constant:bool=False,final:bool=False)",
- "PySide6.QtCore.Property.deleter(self,fdel:typing.Callable)->PySide6.QtCore.Property",
- "PySide6.QtCore.Property.getter(self,fget:typing.Callable)->PySide6.QtCore.Property",
- "PySide6.QtCore.Property.read(self,fget:typing.Callable)->PySide6.QtCore.Property",
- "PySide6.QtCore.Property.setter(self,fset:typing.Callable)->PySide6.QtCore.Property",
- "PySide6.QtCore.Property.write(self,fset:typing.Callable)->PySide6.QtCore.Property",
- "PySide6.QtCore.Property.__call__(self, func:typing.Callable)->PySide6.QtCore.Property",
+ "PySide6.QtCore.Property.deleter(self,fdel:typing.Callable[[typing.Any],None])->PySide6.QtCore.Property",
+ "PySide6.QtCore.Property.getter(self,fget:typing.Callable[[typing.Any],typing.Any])->PySide6.QtCore.Property",
+ "PySide6.QtCore.Property.read(self,fget:typing.Callable[[typing.Any],typing.Any])->PySide6.QtCore.Property",
+ "PySide6.QtCore.Property.setter(self,fset:typing.Callable[[typing.Any,typing.Any],None])->PySide6.QtCore.Property",
+ "PySide6.QtCore.Property.write(self,fset:typing.Callable[[typing.Any,typing.Any],None])->PySide6.QtCore.Property",
+ "PySide6.QtCore.Property.__call__(self, func:typing.Callable[...,typing.Any])->PySide6.QtCore.Property",
nullptr}; // Sentinel
void init(PyObject *module)
diff --git a/sources/pyside6/libpyside/pysideslot.cpp b/sources/pyside6/libpyside/pysideslot.cpp
index 23e8068d6..0a448852e 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",
+ "PySide6.QtCore.Slot.__call__(self,function:typing.Callable[[typing.Any],typing.Any])->typing.Any",
nullptr}; // Sentinel
void init(PyObject *module)
diff --git a/sources/pyside6/libpysideqml/pysideqmllistproperty.cpp b/sources/pyside6/libpysideqml/pysideqmllistproperty.cpp
index c66d870b9..5722dd441 100644
--- a/sources/pyside6/libpysideqml/pysideqmllistproperty.cpp
+++ b/sources/pyside6/libpysideqml/pysideqmllistproperty.cpp
@@ -280,8 +280,11 @@ void QmlListPropertyPrivate::metaCall(PyObject *source, QMetaObject::Call call,
}
static const char *PropertyList_SignatureStrings[] = {
- "PySide6.QtQml.ListProperty(self,type:type,append:typing.Callable,"
- "at:typing.Callable=None,clear:typing.Callable=None,count:typing.Callable=None)",
+ "PySide6.QtQml.ListProperty(self,type:type,"
+ "append:typing.Optional[typing.Callable[...,typing.Any]]=None,"
+ "at:typing.Optional[typing.Callable[...,typing.Any]]=None,"
+ "clear:typing.Optional[typing.Callable[...,typing.Any]]=None,"
+ "count:typing.Optional[typing.Callable[...,typing.Any]]=None)",
nullptr // Sentinel
};