Compatibility with older typer versions (#2117)
This commit is contained in:
parent
1ceaedbd15
commit
fbedc9447e
@ -35,7 +35,11 @@ from reflex.utils import (
|
|||||||
typer.core.rich = False # type: ignore
|
typer.core.rich = False # type: ignore
|
||||||
|
|
||||||
# Create the app.
|
# Create the app.
|
||||||
cli = typer.Typer(add_completion=False, pretty_exceptions_enable=False)
|
try:
|
||||||
|
cli = typer.Typer(add_completion=False, pretty_exceptions_enable=False)
|
||||||
|
except TypeError:
|
||||||
|
# Fallback for older typer versions.
|
||||||
|
cli = typer.Typer(add_completion=False)
|
||||||
|
|
||||||
# Get the config.
|
# Get the config.
|
||||||
config = get_config()
|
config = get_config()
|
||||||
|
Loading…
Reference in New Issue
Block a user