From 5ce9877dad25a261935013a96b9b74c310d6688b Mon Sep 17 00:00:00 2001 From: Christian Tismer Date: Tue, 14 Nov 2017 17:10:26 +0100 Subject: Update and complete the signature module This is a small omission that showed up after generating many signatures. It also has support for "PySide2.QtCore.unsigned char" which came with the introduction of QOpenGLFunctions::glGetString() Task-number: PYSIDE-510 Change-Id: Ic07240cd29d423370717e8b76d0ab2e2b50402bd Reviewed-by: Friedemann Kleint --- sources/pyside2/PySide2/support/signature/mapping.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sources/pyside2') diff --git a/sources/pyside2/PySide2/support/signature/mapping.py b/sources/pyside2/PySide2/support/signature/mapping.py index 33686d4a5..9345464c0 100644 --- a/sources/pyside2/PySide2/support/signature/mapping.py +++ b/sources/pyside2/PySide2/support/signature/mapping.py @@ -197,7 +197,7 @@ def init_QtCore(): "QStringList()": [], "ULONG_MAX": ulong_max, "quintptr": int, - "PyCallable": callable, + "PyCallable": typing.Callable, "...": ellipsis, # no idea how this should be translated... maybe so? "PyTypeObject": type, "PySequence": typing.Sequence, @@ -225,6 +225,7 @@ def init_QtCore(): "PySide2.QtCore.quint64": int, "PySide2.QtCore.quint8": int, "PySide2.QtCore.uchar": Char, + "PySide2.QtCore.unsigned char": Char, # 5.9 "PySide2.QtCore.long": int, "PySide2.QtCore.QUrl.ComponentFormattingOptions": PySide2.QtCore.QUrl.ComponentFormattingOption, # mismatch option/enum, why??? -- cgit v1.2.3