Skip to content

Commit 7605c74

Browse files
authored
depot proof our typer check (#1358)
1 parent 1d29cec commit 7605c74

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

pcweb/pages/docs/cloud_cliref.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def process_command(command: click.Command, name: str) -> str:
267267
process(ctx.to_info_dict()["command"], None, name)
268268

269269

270-
if find_spec("typer") is not None:
270+
if find_spec("typer") is not None and find_spec("typer.main") is not None:
271271
import typer # pyright: ignore[reportMissingImports]
272272

273273
if isinstance(cli, typer.Typer):

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
email-validator==2.1.1
22
black==23.10.0
33
pandas>=1.5.3
4-
typer
54
psycopg[binary]==3.2.3
65
plotly-express==0.4.1
76
googletrans-py==4.0.0

0 commit comments

Comments
 (0)