mirror of
https://github.com/aclist/dztui.git
synced 2026-08-26 09:47:36 +02:00
fix: support empty lists in extend()
This commit is contained in:
parent
3befb1276c
commit
73d66ab5e7
@ -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):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user