Details
-
Bug
-
Resolution: Fixed
-
P4: Low
-
6.7, 6.6.2
-
None
-
-
9c9448277 (dev), ddd875326 (6.7)
Description
QModelIndex.internalPointer is annotated to return an int. In fact, it returns whatever is passed in QAbstractItemModel.createIndex.
So this is wrong:
def internalPointer(self) -> int: ...
And it should be:
def internalPointer(self) -> Any: ...
Attachments
Issue Links
- relates to
-
PYSIDE-1648 QAbstractItemModel.createIndex() overload lead to crash when passing int as internalPointer
- Reported
-
PYSIDE-883 createIndex TypeError on 3rd argument
- Closed