Coverage for docs_src/options/prompt/tutorial003_an.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.6.1, created at 2025-12-19 20:29 +0000

1import typer 1abcdefghi

2from typing_extensions import Annotated 1abcdefghi

3 

4app = typer.Typer() 1abcdefghi

5 

6 

7@app.command() 1abcdefghi

8def main( 1abcdefghi

9 project_name: Annotated[str, typer.Option(prompt=True, confirmation_prompt=True)], 

10): 

11 print(f"Deleting project {project_name}") 1abcdefghi

12 

13 

14if __name__ == "__main__": 1abcdefghi

15 app() 1abcdefghi