diff options
author | Friedemann Kleint <[email protected]> | 2023-04-13 12:18:54 +0200 |
---|---|---|
committer | Friedemann Kleint <[email protected]> | 2023-04-13 14:09:36 +0200 |
commit | 3c2117c6ce31ff403fc2f17a181763057cd2e1bc (patch) | |
tree | efb0d6d40ba4750b0cafb9235048c773ea8cfdb7 /sources/pyside6/PySide6/QtGui | |
parent | 9bd4b56b4d48dfb19293a7a7fc6ebd73b8ed7e60 (diff) |
Add type hints for return values modified to Tuple[]
Pick-to: 6.5
Fixes: PYSIDE-2285
Change-Id: I525ffea2f79bf54de43dc02c31a41994fe3004d5
Reviewed-by: Cristian Maureira-Fredes <[email protected]>
Diffstat (limited to 'sources/pyside6/PySide6/QtGui')
-rw-r--r-- | sources/pyside6/PySide6/QtGui/typesystem_gui_common.xml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sources/pyside6/PySide6/QtGui/typesystem_gui_common.xml b/sources/pyside6/PySide6/QtGui/typesystem_gui_common.xml index ba66a00f2..0cccf7744 100644 --- a/sources/pyside6/PySide6/QtGui/typesystem_gui_common.xml +++ b/sources/pyside6/PySide6/QtGui/typesystem_gui_common.xml @@ -250,7 +250,7 @@ <modify-argument index="1"> <remove-argument/> </modify-argument> - <modify-argument index="return"> + <modify-argument index="return" pyi-type="Tuple[PySide6.QtGui.QTransform, bool]"> <replace-type modified-type="PyTuple"/> </modify-argument> <inject-code class="target" position="beginning"> @@ -1752,7 +1752,7 @@ </modify-argument> </modify-function> <modify-function signature="text(QString&,QClipboard::Mode)const"> - <modify-argument index="return"> + <modify-argument index="return" pyi-type="Tuple[str, PySide6.QtGui.QClipboard.Mode]"> <replace-type modified-type="(retval, subtype)"/> </modify-argument> <inject-code class="target" position="end" file="../glue/qtgui.cpp" snippet="qclipboard-text"/> @@ -2349,7 +2349,7 @@ <modify-argument index="1"> <remove-argument/> </modify-argument> - <modify-argument index="return"> + <modify-argument index="return" pyi-type="Tuple[PySide6.QtGui.QMatrix4x4, bool]"> <replace-type modified-type="PyTuple"/> </modify-argument> <inject-code class="target" position="beginning"> |