Coverage for docs_src/parameter_types/enum/tutorial004_an.py: 100%

6 statements  

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

1import typer 1abcdefghi

2from typing_extensions import Annotated, Literal 1abcdefghi

3 

4app = typer.Typer() 1abcdefghi

5 

6 

7@app.command() 1abcdefghi

8def main( 1abcdefghi

9 network: Annotated[Literal["simple", "conv", "lstm"], typer.Option()] = "simple", 

10): 

11 print(f"Training neural network of type: {network}") 1abcdefghi

12 

13 

14if __name__ == "__main__": 1abcdefghi

15 app() 1abcdefghi