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

8 statements  

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

1import typer 1abcdefgh

2from rich import print 1abcdefgh

3 

4data = { 1abcdefgh

5 "name": "Rick", 

6 "age": 42, 

7 "items": [{"name": "Portal Gun"}, {"name": "Plumbus"}], 

8 "active": True, 

9 "affiliation": None, 

10} 

11 

12app = typer.Typer() 1abcdefgh

13 

14 

15@app.command() 1abcdefgh

16def main(): 1abcdefgh

17 print("Here's the data") 1abcdefgh

18 print(data) 1abcdefgh

19 

20 

21if __name__ == "__main__": 1abcdefgh

22 app() 1abcdefgh