Coverage for docs_src/parameter_types/index/tutorial001.py: 100%
6 statements
« prev ^ index » next coverage.py v7.6.1, created at 2024-09-09 18:26 +0000
« prev ^ index » next coverage.py v7.6.1, created at 2024-09-09 18:26 +0000
1import typer 1abcdefgh
4def main(name: str, age: int = 20, height_meters: float = 1.89, female: bool = True): 1abcdefgh
5 print(f"NAME is {name}, of type: {type(name)}") 1abcdefgh
6 print(f"--age is {age}, of type: {type(age)}") 1abcdefgh
7 print(f"--height-meters is {height_meters}, of type: {type(height_meters)}") 1abcdefgh
8 print(f"--female is {female}, of type: {type(female)}") 1abcdefgh
11if __name__ == "__main__": 1abcdefgh
12 typer.run(main) 1abcdefgh