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

Syntax errors in QtCore.pyi, QtGui.pyi

    XMLWordPrintable

Details

    • 267c75375 (dev), 6426249e4 (6.7), c06a64b89 (6.6), e5eb303bd (tqtc/lts-6.5), 5d9b5718f (6.6.3.1), 87222d432 (tqtc/6.6.3.1)

    Description

      Line 5858 has syntax errors according to mypy and Python 3.12 where the type is given as an ellipsis. I guess the colon should be an equals-sign.

      class QOperatingSystemVersion(PySide6.QtCore.QOperatingSystemVersionBase):
      
          Android10                : ...  # type: QOperatingSystemVersion
      

      The same issue concerns QColorConstants in QtGui.pyi, and other classes.

      Attachments

        Issue Links

          For Gerrit Dashboard: PYSIDE-2653
          # Subject Branch Project Status CR V

          Activity

            People

              ctismer Christian Tismer
              bers bers bers
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There is 1 open Gerrit change