浏览代码

add get config import

Khaleel Al-Adhami 3 周之前
父节点
当前提交
b542393118
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      reflex/state.py

+ 1 - 0
reflex/state.py

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