Coverage for docs_src/testing/app02_an/main.py: 100%
6 statements
« prev ^ index » next coverage.py v7.6.1, created at 2025-04-14 00:18 +0000
« prev ^ index » next coverage.py v7.6.1, created at 2025-04-14 00:18 +0000
1import typer 1abcdefghi
2from typing_extensions import Annotated 1abcdefghi
4app = typer.Typer() 1abcdefghi
7@app.command() 1abcdefghi
8def main(name: str, email: Annotated[str, typer.Option(prompt=True)]): 1abcdefghi
9 print(f"Hello {name}, your email is: {email}") 1abcdefghi
12if __name__ == "__main__": 1abcdefghi
13 app() 1abcdefghi