verify if value is a list for multi variables
This commit is contained in:
parent
aa79d9a710
commit
e7b174f28f
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
#______________________________________________________________________
|
#______________________________________________________________________
|
||||||
|
|
Loading…
Reference in a new issue