From e7b174f28f59aade337d8e5c6450a3169bf47a23 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Tue, 1 Aug 2023 14:49:52 +0200 Subject: [PATCH] verify if value is a list for multi variables --- tiramisu/value.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tiramisu/value.py b/tiramisu/value.py index d7f0c0b..27f6302 100644 --- a/tiramisu/value.py +++ b/tiramisu/value.py @@ -235,6 +235,8 @@ class Values: value: Any, force_allow_empty_list: bool, ) -> bool: + if not isinstance(value, list): + return False return (not force_allow_empty_list and value == []) or None in value or '' in value #______________________________________________________________________