MCPcopy Index your code
hub / github.com/fastapi/fastapi / update_and_add

Function update_and_add

scripts/translate.py:406–414  ·  view source on GitHub ↗
(
    language: Annotated[str, typer.Option(envvar="LANGUAGE")],
    max: Annotated[int, typer.Option(envvar="MAX")] = 10,
)

Source from the content-addressed store, hash-verified

404
405@app.command()
406def update_and_add(
407 language: Annotated[str, typer.Option(envvar="LANGUAGE")],
408 max: Annotated[int, typer.Option(envvar="MAX")] = 10,
409) -> None:
410 print(f"Updating outdated translations for {language}")
411 update_outdated(language=language, max=max)
412 print(f"Adding missing translations for {language}")
413 add_missing(language=language, max=max)
414 print(f"Done updating and adding for {language}")
415
416
417@app.command()

Callers

nothing calls this directly

Calls 2

update_outdatedFunction · 0.85
add_missingFunction · 0.85

Tested by

no test coverage detected