MCPcopy Create free account
hub / github.com/fastapi/fastapi / fix_pages

Function fix_pages

scripts/translation_fixer.py:117–129  ·  view source on GitHub ↗
(
    doc_paths: Annotated[
        list[Path],
        typer.Argument(help="List of paths to documents."),
    ],
)

Source from the content-addressed store, hash-verified

115
116@cli.command()
117def fix_pages(
118 doc_paths: Annotated[
119 list[Path],
120 typer.Argument(help="List of paths to documents."),
121 ],
122):
123 all_good = True
124 for path in doc_paths:
125 res = process_one_page(path)
126 all_good = all_good and res
127
128 if not all_good:
129 raise typer.Exit(code=1)
130
131
132if __name__ == "__main__":

Callers

nothing calls this directly

Calls 1

process_one_pageFunction · 0.85

Tested by

no test coverage detected