diff options
-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); |