From 73d66ab5e7b643c626c2ce39f1150b2efac5b49b Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Sat, 16 May 2026 20:10:26 +0900 Subject: [PATCH] fix: support empty lists in extend() --- dzgui/model/model_factory.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dzgui/model/model_factory.py b/dzgui/model/model_factory.py index c0b87f3..ed1ccdc 100644 --- a/dzgui/model/model_factory.py +++ b/dzgui/model/model_factory.py @@ -95,6 +95,8 @@ class FastInsertListStore(ListStore): expected_types = [ GTYPE_TO_PYTHON[self.get_column_type(i)] for i in range(n_cols) ] + if len(rows) == 0: + return if not self._is_same_length(rows): raise ValueError("Sublists are not of uniform length") if not self._is_type_homogeneous(rows):