Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2272

Wrong signatures in QtQml.pyi

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3: Somewhat important P3: Somewhat important
    • 6.6.0
    • 6.4.2, 6.4.3
    • Type hints
    • None
    • Windows
    • 90fdb33c9 (dev), 1cc34e990 (6.5), dad03dc22 (dev), 841f725fd (6.5)

      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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kleint Friedemann Kleint
            sven.wanzenried Sven Wanzenried
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes