diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-06-14 14:50:17 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-06-16 11:07:33 +0200 |
| commit | 890256cc048452e4632eacc6e8882bd5821f07f3 (patch) | |
| tree | 9fc5338b3c7c47ded18934e56cd4c14ad529b651 | |
| parent | 2a5f0854efdf27ce70ffe569e97d3bcbfcc8e1c8 (diff) | |
PySide6: Fix signature of CoreApplication.instance()
Use the newly added pyi-type attribute to add Optional.
Fixes: PYSIDE-1467
Change-Id: I19f203448cef7d14f49668ce296700099dcadda5
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
| -rw-r--r-- | sources/pyside6/PySide6/QtCore/typesystem_core_common.xml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml b/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml index 80be7e755..945f2ec9e 100644 --- a/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml +++ b/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml @@ -2515,6 +2515,7 @@ <modify-function signature="sendEvent(QObject*,QEvent*)" allow-thread="yes"/> <modify-function signature="sendPostedEvents(QObject*,int)" allow-thread="yes"/> <modify-function signature="instance()"> + <modify-argument index="return" pyi-type="Optional[PySide6.QtCore.QCoreApplication]"/> <inject-code class="target" file="../glue/qtcore.cpp" snippet="qcoreapplication-instance"/> </modify-function> |
