소스 검색

check for typer main (#5198)

* check for typer main

* what
Khaleel Al-Adhami 4 주 전
부모
커밋
a24f08fb5d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      reflex/reflex.py

+ 1 - 1
reflex/reflex.py

@@ -712,7 +712,7 @@ def _convert_reflex_loglevel_to_reflex_cli_loglevel(
     return HostingLogLevel.INFO
 
 
-if find_spec("typer"):
+if find_spec("typer") and find_spec("typer.main"):
     import typer  # pyright: ignore[reportMissingImports]
 
     if isinstance(hosting_cli, typer.Typer):