Ver Fonte

[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 há 6 meses atrás
pai
commit
4571524e1c
1 ficheiros alterados com 1 adições e 1 exclusões
  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: