From 753aa9591aea643fd37a4d54736094dce2c73cf6 Mon Sep 17 00:00:00 2001 From: tangkong Date: Fri, 26 Jul 2024 10:42:43 -0700 Subject: [PATCH] BUG: provide default invalid index for TreeModel.index --- superscore/widgets/tree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superscore/widgets/tree.py b/superscore/widgets/tree.py index 89300ba..f547547 100644 --- a/superscore/widgets/tree.py +++ b/superscore/widgets/tree.py @@ -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.