]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
👷 Fix Typer command for CI LLM translations (#14530)
authorSebastián Ramírez <tiangolo@gmail.com>
Tue, 16 Dec 2025 12:53:28 +0000 (04:53 -0800)
committerGitHub <noreply@github.com>
Tue, 16 Dec 2025 12:53:28 +0000 (12:53 +0000)
scripts/translate.py

index 33a4bd6ef768db831b1b7eca857d2b9f8802e147..764bc704eae22ab3afc7c064a29e9c8dc955f964 100644 (file)
@@ -914,7 +914,7 @@ def list_all_removable() -> list[Path]:
 
 
 @app.command()
-def remove_removable(language: str) -> None:
+def remove_removable(language: Annotated[str, typer.Option(envvar="LANGUAGE")]) -> None:
     removable_paths = list_removable(language)
     for path in removable_paths:
         path.unlink()