diff --git a/reflex/components/core/foreach.py b/reflex/components/core/foreach.py index 4b6192e0b..c032727bb 100644 --- a/reflex/components/core/foreach.py +++ b/reflex/components/core/foreach.py @@ -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): diff --git a/reflex/vars/sequence.py b/reflex/vars/sequence.py index 5b7c1bfb6..1f56216a5 100644 --- a/reflex/vars/sequence.py +++ b/reflex/vars/sequence.py @@ -988,6 +988,7 @@ class ArrayVar(Var[ARRAY_VAR_TYPE], python_types=(Sequence, set)): Raises: VarTypeError: If the function takes more than one argument. + TypeError: If the function is a ComponentState. """ from reflex.state import ComponentState