fix: support empty lists in extend()

This commit is contained in:
aclist 2026-05-16 20:10:26 +09:00
parent 3befb1276c
commit 73d66ab5e7

View File

@ -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):