Coverage for docs_src / arguments / optional / tutorial000.py: 100%

4 statements  

« prev     ^ index     » next       coverage.py v7.13.1, created at 2026-11-18 11:12 +0000

1from typing import Annotated 1abcdefghij

2 

3import typer 1abcdefghij

4 

5 

6def main(name: Annotated[str, typer.Argument()]): 1abcdefghij

7 print(f"Hello {name}") 1abcdefghij

8 

9 

10if __name__ == "__main__": 1abcdefghij

11 typer.run(main) 1abcdefghij