File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
airbyte_cdk/cli/manifest_runner Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 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+
46import rich_click as click
57
68# Import server dependencies with graceful fallback
9+ fastapi : Optional [Any ] = None
10+ uvicorn : Optional [Any ] = None
11+
712try :
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
1217except ImportError :
1318 FASTAPI_AVAILABLE = False
14- fastapi = None
15- uvicorn = None
1619
1720
1821@click .command ()
1922def 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__ } " )
You can’t perform that action at this time.
0 commit comments