The signature for your signal is "test(QString, PyQt_PyObject)" .
Thus, it is obvious that str maps to QString and other types of objects of the native type python, dict , list ... are mapped to the C ++ type PyQt_PyObject .
A list of signal signatures can be obtained through the QMetaObject associated with your object:
test = Test() metaobject = test.metaObject() for i in range(metaobject.methodCount()): print(metaobject.method(i).signature())
source share