Skip to content

Commit f4e6109

Browse files
committed
fix: Add missing generic type
1 parent e657a1a commit f4e6109

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/ai/backend/storage/services/artifacts/huggingface.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ async def _import_models_batch(reporter: ProgressReporter) -> DispatchResult:
708708
# Import Pipeline Steps
709709

710710

711-
class HuggingFaceDownloadStep(ImportStep):
711+
class HuggingFaceDownloadStep(ImportStep[None]):
712712
"""Step to download files from HuggingFace"""
713713

714714
def __init__(self, registry_configs: dict[str, HuggingfaceConfig]) -> None:
@@ -1010,7 +1010,7 @@ def create_huggingface_import_pipeline(
10101010
artifact_verifier_ctx: ArtifactVerifierContext,
10111011
) -> ImportPipeline:
10121012
"""Create ImportPipeline for HuggingFace based on storage step mappings."""
1013-
steps: list[ImportStep] = []
1013+
steps: list[ImportStep[Any]] = []
10141014

10151015
# Add steps based on what's present in storage_step_mappings
10161016
if ArtifactStorageImportStep.DOWNLOAD in storage_step_mappings:

src/ai/backend/storage/services/artifacts/reservoir.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ async def _import_models_batch(reporter: ProgressReporter) -> DispatchResult:
385385
# Import Pipeline Steps
386386

387387

388-
class ReservoirDownloadStep(ImportStep):
388+
class ReservoirDownloadStep(ImportStep[None]):
389389
"""Step to copy files from Reservoir (effectively direct copy to download storage)"""
390390

391391
def __init__(
@@ -955,7 +955,7 @@ def create_reservoir_import_pipeline(
955955
artifact_verifier_ctx: ArtifactVerifierContext,
956956
) -> ImportPipeline:
957957
"""Create ImportPipeline for Reservoir based on storage step mappings."""
958-
steps: list[ImportStep] = []
958+
steps: list[ImportStep[Any]] = []
959959

960960
# Add steps based on what's present in storage_step_mappings
961961
if ArtifactStorageImportStep.DOWNLOAD in storage_step_mappings:

0 commit comments

Comments
 (0)