Skip to content

Commit

Permalink
BUG: provide default invalid index for TreeModel.index
Browse files Browse the repository at this point in the history
  • Loading branch information
tangkong committed Jul 26, 2024
1 parent 0009143 commit 753aa95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superscore/widgets/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def index(
self,
row: int,
column: int,
parent: QtCore.QModelIndex = None
parent: QtCore.QModelIndex = QtCore.QModelIndex()
) -> QtCore.QModelIndex:
"""
Returns the index of the item in the model.
Expand Down

0 comments on commit 753aa95

Please sign in to comment.