mirror of
https://github.com/aclist/dztui.git
synced 2026-10-25 12:12:31 +01:00
fix: support empty lists in extend()
This commit is contained in:
1 parent
3befb1276c
commit
73d66ab5e7
1 file changed
+2
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user