Coverage for docs_src / printing / tutorial004.py: 100%
7 statements
« prev ^ index » next coverage.py v7.13.1, created at 2026-11-18 11:12 +0000
« prev ^ index » next coverage.py v7.13.1, created at 2026-11-18 11:12 +0000
1import typer 1abcdefghij
2from rich.console import Console 1abcdefghij
4err_console = Console(stderr=True) 1abcdefghij
6app = typer.Typer() 1abcdefghij
9@app.command() 1abcdefghij
10def main(): 1abcdefghij
11 err_console.print("Here is something written to standard error") 1abcdefghij
14if __name__ == "__main__": 1abcdefghij
15 app() 1abcdefghij