-
Bug
-
Resolution: Unresolved
-
P4: Low
-
None
-
6.9.2
-
None
QObject.parent can return None but this is not documented in the type hints.
Note that this probably applies to all subclasses of QObject as well.
Current (incorrect) type hint
def parent(self, /) -> PySide6.QtCore.QObject: ...
Correct type hint
def parent(self, /) -> PySide6.QtCore.QObject | None: ...