[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
This commit is contained in:
Masen Furer 2024-11-21 04:11:34 -08:00 committed by GitHub
parent 681b616000
commit 4571524e1c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: