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

QWindow.setParent type hint is incorrect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3: Somewhat important P3: Somewhat important
    • 6.10.1, 6.11.0, 6.8.5
    • 6.9.2
    • Type hints
    • None
    • All
    • 972ddda50 (tqtc/lts-6.8), b9d96d0da (6.10), c101b6893 (dev)

      QWindow.setParent can take None to set the QWindow as a top level window.

      This is missing from the type hints.

      Current (incorrect) type hint

      def setParent(self, parent: PySide6.QtGui.QWindow, /) -> None: ... 

      Correct type hint

      def setParent(self, parent: PySide6.QtGui.QWindow | None, /) -> None: ... 

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

            crmaurei Cristian Maureira-Fredes
            gentlegiantjgc J C
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes