Преглед на файлове

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"
 redis = "^4.3.5"
 rich = "^13.0.0"
 rich = "^13.0.0"
 sqlmodel = "^0.0.8"
 sqlmodel = "^0.0.8"
-typer = "0.4.2"
+typer = ">=0.4.2,<1"
 uvicorn = "^0.20.0"
 uvicorn = "^0.20.0"
 watchdog = "^2.3.1"
 watchdog = "^2.3.1"
 watchfiles = "^0.19.0"
 watchfiles = "^0.19.0"

+ 5 - 1
reflex/reflex.py

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

Някои файлове не бяха показани, защото твърде много файлове са промени