aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2017-11-14 17:10:26 +0100
committerChristian Tismer <tismer@stackless.com>2017-11-15 12:11:11 +0000
commit5ce9877dad25a261935013a96b9b74c310d6688b (patch)
treef2ed23c488b9779c042cd4f0e3fb18b2630f26b7
parent7b681c84b0970a6d54c11eededf6f93eed8b8782 (diff)
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 <Friedemann.Kleint@qt.io>
-rw-r--r--sources/pyside2/PySide2/support/signature/mapping.py3
1 files changed, 2 insertions, 1 deletions
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???