verify if value is a list for multi variables

This commit is contained in:
egarette@silique.fr 2023-08-01 14:49:52 +02:00
parent aa79d9a710
commit e7b174f28f

View file

@ -235,6 +235,8 @@ class Values:
value: Any, value: Any,
force_allow_empty_list: bool, force_allow_empty_list: bool,
) -> bool: ) -> bool:
if not isinstance(value, list):
return False
return (not force_allow_empty_list and value == []) or None in value or '' in value return (not force_allow_empty_list and value == []) or None in value or '' in value
#______________________________________________________________________ #______________________________________________________________________