Coverage for docs_src/parameter_types/uuid/tutorial001.py: 100%

7 statements  

« prev     ^ index     » next       coverage.py v7.6.1, created at 2025-12-19 20:29 +0000

1from uuid import UUID 1abcdefghi

2 

3import typer 1abcdefghi

4 

5app = typer.Typer() 1abcdefghi

6 

7 

8@app.command() 1abcdefghi

9def main(user_id: UUID): 1abcdefghi

10 print(f"USER_ID is {user_id}") 1abcdefghi

11 print(f"UUID version is: {user_id.version}") 1abcdefghi

12 

13 

14if __name__ == "__main__": 1abcdefghi

15 app() 1abcdefghi