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

Wrong type hints for QtCore.QPoint/QSize/QLine .toTuple()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Not Evaluated Not Evaluated
    • 6.10.0, 6.11.0
    • 6.8.3
    • Type hints
    • None
    • All
    • cc2a2ab99 (dev), e1c761e27 (6.10)

       

      from PySide6 import QtCore
      
      result: tuple[float, float] = QtCore.QSize().toTuple()
      result: tuple[float, float] = QtCore.QPoint().toTuple()
      result: tuple[float, float] = QtCore.QLine().toTuple()

      The type hint says:

      Expected type 'tuple[float, float]', got 'object' instead

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

            cinucen Ece Cinucen
            beatreichenbach Beat Reichenbach
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes