Explorar o código

dang it darglint

Khaleel Al-Adhami hai 4 meses
pai
achega
be92063421
Modificáronse 2 ficheiros con 1 adicións e 1 borrados
  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:
         ForeachVarError: If the iterable is of type Any.
-        TypeError: If the render function is a ComponentState.
     """
     iterable = LiteralVar.create(iterable)
     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:
             VarTypeError: If the function takes more than one argument.
+            TypeError: If the function is a ComponentState.
         """
         from reflex.state import ComponentState