Coverage for docs_src / multiple_values / arguments_with_multiple_values / tutorial002_an_py39.py: 100%

7 statements  

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

1from typing import Annotated 1abcdefgh

2 

3import typer 1abcdefgh

4 

5app = typer.Typer() 1abcdefgh

6 

7 

8@app.command() 1abcdefgh

9def main( 1abcdefgh

10 names: Annotated[ 

11 tuple[str, str, str], typer.Argument(help="Select 3 characters to play with") 

12 ] = ("Harry", "Hermione", "Ron"), 

13): 

14 for name in names: 1abcdefgh

15 print(f"Hello {name}") 1abcdefgh

16 

17 

18if __name__ == "__main__": 1abcdefgh

19 app() 1abcdefgh