Selaa lähdekoodia

add get config import

Khaleel Al-Adhami 3 viikkoa sitten
vanhempi
säilyke
b542393118
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      reflex/state.py

+ 1 - 0
reflex/state.py

@@ -1013,6 +1013,7 @@ class BaseState(Base, ABC, extra=pydantic.Extra.allow):
         Raises:
         Raises:
             VarTypeError: if the variable has an incorrect type
             VarTypeError: if the variable has an incorrect type
         """
         """
+        from reflex.config import get_config
         from reflex.utils.exceptions import VarTypeError
         from reflex.utils.exceptions import VarTypeError
 
 
         if not types.is_valid_var_type(prop._var_type):
         if not types.is_valid_var_type(prop._var_type):