Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
6.4.2, 6.4.3
-
None
-
-
90fdb33c9 (dev), 1cc34e990 (6.5), dad03dc22 (dev), 841f725fd (6.5)
Description
The signatures presented in QtQml.pyi from at least the following functions do not match their respective documentation on https://doc.qt.io/qtforpython/PySide6/QtQml:
def qmlProtectModule(...)
def qmlRegisterModule(...)
def qmlRegisterSingletonInstance(...)
def qmlRegisterSingletonType(...)
def qmlRegisterType(...)
def qmlRegisterType(...)
def qmlRegisterUncreatableMetaObject(...)
def qmlRegisterUncreatableType(...)
def qmlTypeId(...)
As I see it, everywhere that should be str according to documentation (when passing 'uri' or name parameters) there is bytes in the presented signatures.
Additionally, the names of the parameters do not match the documentation:
In many places the parameters are simply named "arg_1", "arg_2" and so on.
Attachments
For Gerrit Dashboard: PYSIDE-2272 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
469956,2 | PySide6: Add parameter names to the qmlRegister() functions | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
470024,2 | PySide6: Add parameter names to the qmlRegister() functions | 6.5 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
493947,2 | PySide6: Fix signatures of the qmlRegister() functions | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
494040,2 | PySide6: Fix signatures of the qmlRegister() functions | 6.5 | pyside/pyside-setup | Status: MERGED | +2 | 0 |