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

6 statements  

« prev     ^ index     » next       coverage.py v7.6.1, created at 2024-09-09 18:26 +0000

1from typing import Tuple 1habcdefg

2 

3import typer 1habcdefg

4from typing_extensions import Annotated 1habcdefg

5 

6 

7def main( 1abcdefg

8 names: Annotated[ 

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

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

11): 

12 for name in names: 1habcdefg

13 print(f"Hello {name}") 1habcdefg

14 

15 

16if __name__ == "__main__": 1habcdefg

17 typer.run(main) 1habcdefg