callable vars are not good
This commit is contained in:
parent
e10cf07506
commit
c6e2368c95
@ -33,7 +33,7 @@ def foreach(
|
|||||||
Raises:
|
Raises:
|
||||||
ForeachVarError: If the iterable is of type Any.
|
ForeachVarError: If the iterable is of type Any.
|
||||||
"""
|
"""
|
||||||
iterable = LiteralVar.create(iterable)
|
iterable = LiteralVar.create(iterable).guess_type()
|
||||||
if isinstance(iterable, ObjectVar):
|
if isinstance(iterable, ObjectVar):
|
||||||
iterable = iterable.items()
|
iterable = iterable.items()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user