libshiboken: Fix a crash in Shiboken::Object::isValid() for Python 3.11
The function is passed type objects for class methods, which caused
it to crash.
The first clause did not catch this, and so it was cast to SbkObject
below.
Add a type check to prevent this.
Pick-to: 6.3 6.2 5.15
Task-number: PYSIDE-1960
Change-Id: Icfdd6fefb7156ac5961444bd5395109849a1d66e
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
(cherry picked from commit
52df3b8f64d08f412d7f8b12d82fc0ae6f3c741d)
Gbp-Pq: Name libshiboken-Fix-a-crash-in-Shiboken-Object-isValid.patch
Update import of PyQt5 private sip module and remove Python 2/PyQt4 setapi calls
Last-Updated: 2020-12-20
Gbp-Pq: Name update-sip-import.patch