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