Skip to content

Commit 3db35de

Browse files
committed
fix: types in cli py
1 parent f74a93f commit 3db35de

File tree

1 file changed

+4
-2
lines changed
  • packages/python/src/envoic

1 file changed

+4
-2
lines changed

packages/python/src/envoic/cli.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
)
2222
from .models import (
2323
ArtifactInfo,
24+
ArtifactSummary,
2425
EnvInfo,
2526
EnvType,
2627
SafetyLevel,
@@ -293,7 +294,7 @@ def manage(
293294
)
294295

295296
selected_envs: list[EnvInfo] = []
296-
selected_artifact_groups = []
297+
selected_artifact_groups: list[ArtifactSummary] = []
297298
artifact_groups = summarize_with_empty_patterns(result.artifacts)
298299
while True:
299300
selected_envs, selected_artifact_groups = interactive_select_with_artifacts(
@@ -365,8 +366,9 @@ def clean(
365366
raise typer.Exit(0)
366367

367368
typer.echo(f"Found {len(selected)} stale environments.")
369+
selected_items: list[EnvInfo | ArtifactInfo] = [*selected]
368370
_confirm_and_delete(
369-
selected,
371+
selected_items,
370372
scan_root=result.scan_path,
371373
initial_total=len(result.environments),
372374
dry_run=dry_run,

0 commit comments

Comments
 (0)