Coverage for docs_src/exceptions/tutorial003.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.6.1, created at 2025-04-14 00:18 +0000

1import typer 1abcdefghi

2 

3app = typer.Typer(pretty_exceptions_short=False) 1abcdefghi

4 

5 

6@app.command() 1abcdefghi

7def main(name: str = "morty"): 1abcdefghi

8 print(name + 3) 1abcdefghi

9 

10 

11if __name__ == "__main__": 1abcdefghi

12 app() 1abcdefghi