瀏覽代碼

[ENG-4130] Disable typer/rich integration appropriately (#4412)

The `rich` module should be set to `None`, indicating that rich should not be used.

Setting it to `False` worked before, but recently added code in typer fails
when checking `if rich is not None`.

ref: https://github.com/fastapi/typer/pull/847
Masen Furer 6 月之前
父節點
當前提交
4571524e1c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      reflex/reflex.py

+ 1 - 1
reflex/reflex.py

@@ -20,7 +20,7 @@ from reflex.state import reset_disk_state_manager
 from reflex.utils import console, redir, telemetry
 
 # Disable typer+rich integration for help panels
-typer.core.rich = False  # type: ignore
+typer.core.rich = None  # type: ignore
 
 # Create the app.
 try: