Coverage for docs_src/multiple_values/arguments_with_multiple_values/tutorial001.py: 100%
8 statements
« prev ^ index » next coverage.py v7.6.1, created at 2024-09-09 18:26 +0000
« prev ^ index » next coverage.py v7.6.1, created at 2024-09-09 18:26 +0000
1from pathlib import Path 1abcdefgh
2from typing import List 1abcdefgh
4import typer 1abcdefgh
7def main(files: List[Path], celebration: str): 1abcdefgh
8 for path in files: 1abcdefgh
9 if path.is_file(): 1abcdefgh
10 print(f"This file exists: {path.name}") 1abcdefgh
11 print(celebration) 1abcdefgh
14if __name__ == "__main__": 1abcdefgh
15 typer.run(main) 1abcdefgh