Răsfoiți Sursa

dang it darglint

Khaleel Al-Adhami 4 luni în urmă
părinte
comite
be92063421
2 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 0 1
      reflex/components/core/foreach.py
  2. 1 0
      reflex/vars/sequence.py

+ 0 - 1
reflex/components/core/foreach.py

@@ -32,7 +32,6 @@ def foreach(
 
 
     Raises:
     Raises:
         ForeachVarError: If the iterable is of type Any.
         ForeachVarError: If the iterable is of type Any.
-        TypeError: If the render function is a ComponentState.
     """
     """
     iterable = LiteralVar.create(iterable)
     iterable = LiteralVar.create(iterable)
     if isinstance(iterable, ObjectVar):
     if isinstance(iterable, ObjectVar):

+ 1 - 0
reflex/vars/sequence.py

@@ -988,6 +988,7 @@ class ArrayVar(Var[ARRAY_VAR_TYPE], python_types=(Sequence, set)):
 
 
         Raises:
         Raises:
             VarTypeError: If the function takes more than one argument.
             VarTypeError: If the function takes more than one argument.
+            TypeError: If the function is a ComponentState.
         """
         """
         from reflex.state import ComponentState
         from reflex.state import ComponentState