浏览代码

pyproject.toml: bump typer to 0.9.0 (#2068)

Masen Furer 1 年之前
父节点
当前提交
050dd3da92
共有 3 个文件被更改,包括 139 次插入195 次删除
  1. 133 193
      poetry.lock
  2. 1 1
      pyproject.toml
  3. 5 1
      reflex/reflex.py

文件差异内容过多而无法显示
+ 133 - 193
poetry.lock


+ 1 - 1
pyproject.toml

@@ -39,7 +39,7 @@ python-socketio = "^5.7.0"
 redis = "^4.3.5"
 rich = "^13.0.0"
 sqlmodel = "^0.0.8"
-typer = "0.4.2"
+typer = ">=0.4.2,<1"
 uvicorn = "^0.20.0"
 watchdog = "^2.3.1"
 watchfiles = "^0.19.0"

+ 5 - 1
reflex/reflex.py

@@ -14,6 +14,7 @@ from typing import List, Optional
 
 import httpx
 import typer
+import typer.core
 from alembic.util.exc import CommandError
 from tabulate import tabulate
 
@@ -30,8 +31,11 @@ from reflex.utils import (
     telemetry,
 )
 
+# Disable typer+rich integration for help panels
+typer.core.rich = False  # type: ignore
+
 # Create the app.
-cli = typer.Typer(add_completion=False)
+cli = typer.Typer(add_completion=False, pretty_exceptions_enable=False)
 
 # Get the config.
 config = get_config()

部分文件因为文件数量过多而无法显示