-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
6.9.2
-
None
-
-
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: ...
For Gerrit Dashboard: PYSIDE-3187 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
677390,3 | pyi: QWindow.setParent argument can be Optional | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
678245,2 | pyi: QWindow.setParent argument can be Optional | 6.10 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
678312,2 | pyi: QWindow.setParent argument can be Optional | tqtc/lts-6.8 | pyside/tqtc-pyside-setup | Status: MERGED | +2 | 0 |