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

Wrong signatures in QtQml.pyi

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • 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)

    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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes