Coverage for docs_src / printing / tutorial001.py: 100%
8 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 import print 1abcdefghij
4data = { 1abcdefghij
5 "name": "Rick",
6 "age": 42,
7 "items": [{"name": "Portal Gun"}, {"name": "Plumbus"}],
8 "active": True,
9 "affiliation": None,
10}
12app = typer.Typer() 1abcdefghij
15@app.command() 1abcdefghij
16def main(): 1abcdefghij
17 print("Here's the data") 1abcdefghij
18 print(data) 1abcdefghij
21if __name__ == "__main__": 1abcdefghij
22 app() 1abcdefghij