-
Bug
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
6.10.0
-
None
QLayout.takeAt can return None but the type hint does not reflect this.
If there is no item at the specified location takeAt will return None.
This applies to all subclasses of QLayout as well.
Current (incorrect) type hint
def takeAt(self, index: int, /) -> PySide6.QtWidgets.QLayoutItem: ...
Expected type hint
def takeAt(self, index: int, /) -> PySide6.QtWidgets.QLayoutItem | None: ...