浏览代码

[REF-3149] Bring back py3.12 hot reload warning (#3537)

Warning for issue #3536

Co-authored-by: Lendemor <thomas.brandeho@gmail.com>
Masen Furer 11 月之前
父节点
当前提交
b2b0da036d
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      reflex/utils/prerequisites.py

+ 3 - 2
reflex/utils/prerequisites.py

@@ -955,9 +955,10 @@ def needs_reinit(frontend: bool = True) -> bool:
         console.warn(
             """Windows Subsystem for Linux (WSL) is recommended for improving initial install times."""
         )
-        if sys.version_info >= (3, 12) and uvi_ver != "0.24.0.post1":
+        if sys.version_info >= (3, 12):
             console.warn(
-                f"""On Python 3.12, `uvicorn==0.24.0.post1` is recommended for improved hot reload times. Found {uvi_ver} instead."""
+                "Python 3.12 on Windows has known issues with hot reload (reflex-dev/reflex#3536). "
+                "Python 3.11 is recommended with this release of Reflex."
             )
 
         if sys.version_info < (3, 12) and uvi_ver != "0.20.0":