callable vars are not good

This commit is contained in:
Khaleel Al-Adhami 2025-01-22 13:35:04 -08:00
parent e10cf07506
commit c6e2368c95

View File

@ -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()