@@ -32,7 +32,6 @@ def foreach(
Raises:
ForeachVarError: If the iterable is of type Any.
- TypeError: If the render function is a ComponentState.
"""
iterable = LiteralVar.create(iterable)
if isinstance(iterable, ObjectVar):
@@ -988,6 +988,7 @@ class ArrayVar(Var[ARRAY_VAR_TYPE], python_types=(Sequence, set)):
VarTypeError: If the function takes more than one argument.
+ TypeError: If the function is a ComponentState.
from reflex.state import ComponentState