Details
-
Bug
-
Resolution: Done
-
P4: Low
-
None
-
6.3.1
-
None
-
fc9b08123a (pyside/pyside-setup/dev) fc9b08123a (pyside/tqtc-pyside-setup/dev) 6d5f7b839f (pyside/pyside-setup/6.3) 6d5f7b839f (pyside/tqtc-pyside-setup/6.3) 6d5f7b839f (pyside/pyside-setup/wip/6.3_pypy) 6d5f7b839f (pyside/tqtc-pyside-setup/wip/6.3_pypy)
Description
Most of the signatures in sources/shiboken6/shibokenmodule/Shiboken.pyi are typed with object, which is incorrect for themapart from dump, invalidate, and isValid, as they expect shiboken types; the object return types also restrict most operations on them and require casts on the caller's side
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 isValid(arg__1: object) -> bool: ... def ownedByPython(arg__1: object) -> bool: ... def wrapInstance(arg__1: int, arg__2: type) -> object: ...
Attachments
For Gerrit Dashboard: PYSIDE-2046 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
430079,4 | shiboken6: Fix a crash caused by invalid return types of added functions | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
430085,5 | Fix stubs of shiboken6.Shiboken | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
430141,2 | Modernize Shiboken.getAllValidWrappers() | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
430309,2 | Fix stubs of shiboken6.Shiboken | 6.3 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
430310,2 | Modernize Shiboken.getAllValidWrappers() | 6.3 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
430312,1 | Fix stubs of shiboken6.Shiboken | tqtc/lts-6.2 | pyside/tqtc-pyside-setup | Status: ABANDONED | +2 | 0 |
430313,2 | Modernize Shiboken.getAllValidWrappers() | tqtc/lts-6.2 | pyside/tqtc-pyside-setup | Status: MERGED | +2 | 0 |
430980,2 | shiboken6: Fix a crash caused by invalid return types of added functions | 6.3 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
430984,2 | shiboken6: Fix a crash caused by invalid return types of added functions | tqtc/lts-6.2 | pyside/tqtc-pyside-setup | Status: MERGED | +2 | 0 |