diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-09-01 13:26:53 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-09-02 12:57:02 +0000 |
commit | 6d5f7b839fab7e05b04fc3090891cf448919defb (patch) | |
tree | cbd91cb9ff4efa06ee369de477ea3df4bdc14ac8 | |
parent | d012c19a3113d10aab1c0abcce3b51d7fa1d6a76 (diff) |
Fix stubs of shiboken6.Shiboken
Fixes: PYSIDE-2046
Change-Id: I6a888d1f1f8dff25d5fc7f40131504d93c79be62
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit fc9b08123a1f2c3a9d1d6def83dd4d4599646c34)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | sources/shiboken6/shibokenmodule/Shiboken.pyi | 16 | ||||
-rw-r--r-- | sources/shiboken6/shibokenmodule/typesystem_shiboken.xml | 6 |
2 files changed, 11 insertions, 11 deletions
diff --git a/sources/shiboken6/shibokenmodule/Shiboken.pyi b/sources/shiboken6/shibokenmodule/Shiboken.pyi index e312f6912..c0bfe3907 100644 --- a/sources/shiboken6/shibokenmodule/Shiboken.pyi +++ b/sources/shiboken6/shibokenmodule/Shiboken.pyi @@ -59,15 +59,15 @@ class VoidPtr(object): ... def _unpickle_enum(arg__1: object, arg__2: object) -> object: ... -def createdByPython(arg__1: object) -> bool: ... -def delete(arg__1: object) -> None: ... -def dump(arg__1: object) -> object: ... -def getAllValidWrappers() -> object: ... -def getCppPointer(arg__1: object) -> object: ... -def invalidate(arg__1: object) -> None: ... +def createdByPython(arg__1: Shiboken.Object) -> bool: ... +def delete(arg__1: Shiboken.Object) -> None: ... +def dump(arg__1: object) -> str: ... +def getAllValidWrappers() -> list[Shiboken.Object]: ... +def getCppPointer(arg__1: Shiboken.Object) -> tuple[int, ...]: ... +def invalidate(arg__1: Shiboken.Object) -> None: ... def isValid(arg__1: object) -> bool: ... -def ownedByPython(arg__1: object) -> bool: ... -def wrapInstance(arg__1: int, arg__2: type) -> object: ... +def ownedByPython(arg__1: Shiboken.Object) -> bool: ... +def wrapInstance(arg__1: int, arg__2: type) -> Shiboken.Object: ... # eof diff --git a/sources/shiboken6/shibokenmodule/typesystem_shiboken.xml b/sources/shiboken6/shibokenmodule/typesystem_shiboken.xml index 5bc361644..e0137f4a3 100644 --- a/sources/shiboken6/shibokenmodule/typesystem_shiboken.xml +++ b/sources/shiboken6/shibokenmodule/typesystem_shiboken.xml @@ -29,7 +29,7 @@ </inject-code> </add-function> - <add-function signature="getCppPointer(PyObject*)" return-type="PyObject*"> + <add-function signature="getCppPointer(PyObject*)" return-type="PySequence*"> <inject-code> if (Shiboken::Object::checkType(%1)) { std::vector<void*> ptrs = Shiboken::Object::cppPointers(reinterpret_cast<SbkObject *>(%1)); @@ -74,7 +74,7 @@ </inject-code> </add-function> - <add-function signature="dump(PyObject*)" return-type="PyObject*"> + <add-function signature="dump(PyObject*)" return-type="const char *"> <inject-code> if (!Shiboken::Object::checkType(%1)) { %PYARG_0 = Shiboken::String::fromCString("Ordinary Python type."); @@ -85,7 +85,7 @@ </inject-code> </add-function> - <add-function signature="getAllValidWrappers(void)" return-type="PyObject*"> + <add-function signature="getAllValidWrappers(void)" return-type="PySequence*"> <inject-code> std::set<PyObject*> setAll = Shiboken::BindingManager::instance().getAllPyObjects(); PyObject* listAll = PyList_New(0); |