Skip to content

Commit b844342

Browse files
committed
more mypy
1 parent 41a6abf commit b844342

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

airbyte_cdk/cli/manifest_runner/_info.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,27 @@
11
# Copyright (c) 2025 Airbyte, Inc., all rights reserved.
22
"""Info command for the manifest runner CLI."""
33

4+
from typing import Any, Optional
5+
46
import rich_click as click
57

68
# Import server dependencies with graceful fallback
9+
fastapi: Optional[Any] = None
10+
uvicorn: Optional[Any] = None
11+
712
try:
8-
import fastapi
9-
import uvicorn
13+
import fastapi # type: ignore[no-redef]
14+
import uvicorn # type: ignore[no-redef]
1015

1116
FASTAPI_AVAILABLE = True
1217
except ImportError:
1318
FASTAPI_AVAILABLE = False
14-
fastapi = None
15-
uvicorn = None
1619

1720

1821
@click.command()
1922
def info() -> None:
2023
"""Show manifest runner information and status."""
21-
if FASTAPI_AVAILABLE:
24+
if FASTAPI_AVAILABLE and fastapi is not None and uvicorn is not None:
2225
click.echo("✅ Manifest runner dependencies are installed")
2326
click.echo(f" FastAPI version: {fastapi.__version__}")
2427
click.echo(f" Uvicorn version: {uvicorn.__version__}")

0 commit comments

Comments
 (0)