Coverage for docs_src / printing / tutorial004_py39.py: 100%

7 statements  

« prev     ^ index     » next       coverage.py v7.13.1, created at 2026-02-09 12:36 +0000

1import typer 1abcdefgh

2from rich.console import Console 1abcdefgh

3 

4err_console = Console(stderr=True) 1abcdefgh

5 

6app = typer.Typer() 1abcdefgh

7 

8 

9@app.command() 1abcdefgh

10def main(): 1abcdefgh

11 err_console.print("Here is something written to standard error") 1abcdefgh

12 

13 

14if __name__ == "__main__": 1abcdefgh

15 app() 1abcdefgh