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

Missing types for Public Variables

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • None
    • 6.5.1.1
    • Type hints
    • None
    • All

    Description

      The variables that correspond to Public Variables of the C++ implementation don't have type annotations generated.

      One example would be the `QStyleOption` class:
      The C++ doc: https://doc.qt.io/qt-6/qstyleoption.html#public-variables
      The PySides6 doc: https://doc.qt.io/qtforpython-6/PySide6/QtWidgets/QStyleOption.html#PySide6.QtWidgets.PySide6.QtWidgets.QStyleOption.version
      Stubs: https://github.com/python-qt-tools/PySide6-stubs/blob/main/PySide6-stubs/QtWidgets.pyi#L7038-L7086

      But other classes seem to miss these variables as well, e.g., `QStyleHintReturnVariant`, `PixmapFragment`.

      Attachments

        Issue Links

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

          Activity

            People

              ctismer Christian Tismer
              boldar99 Boldizsar Poor
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes