Skip to content

Commit 05784cb

Browse files
committed
check for typer main (#5198)
* check for typer main * what
1 parent 20f9965 commit 05784cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reflex/reflex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ def _convert_reflex_loglevel_to_reflex_cli_loglevel(
712712
return HostingLogLevel.INFO
713713

714714

715-
if find_spec("typer"):
715+
if find_spec("typer") and find_spec("typer.main"):
716716
import typer # pyright: ignore[reportMissingImports]
717717

718718
if isinstance(hosting_cli, typer.Typer):

0 commit comments

Comments
 (0)