Преглед на файлове

show the value causing problem in deprecation warning (#3558)

Thomas Brandého преди 11 месеца
родител
ревизия
6863e8ce8c
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      reflex/vars.py

+ 1 - 1
reflex/vars.py

@@ -416,7 +416,7 @@ class Var:
 
 
         if _var_is_string is None and type_ is str:
         if _var_is_string is None and type_ is str:
             console.deprecate(
             console.deprecate(
-                feature_name="Creating a Var from a string without specifying _var_is_string",
+                feature_name=f"Creating a Var ({value}) from a string without specifying _var_is_string",
                 reason=(
                 reason=(
                     "Specify _var_is_string=False to create a Var that is not a string literal. "
                     "Specify _var_is_string=False to create a Var that is not a string literal. "
                     "In the future, creating a Var from a string will be treated as a string literal "
                     "In the future, creating a Var from a string will be treated as a string literal "