Coverage for docs_src / parameter_types / enum / tutorial001.py: 100%
10 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
1from enum import StrEnum 1abcdefghij
3import typer 1abcdefghij
6class NeuralNetwork(StrEnum): 1abcdefghij
7 simple = "simple" 1abcdefghij
8 conv = "conv" 1abcdefghij
9 lstm = "lstm" 1abcdefghij
12app = typer.Typer() 1abcdefghij
15@app.command() 1abcdefghij
16def main(network: NeuralNetwork = NeuralNetwork.simple): 1abcdefghij
17 print(f"Training neural network of type: {network}") 1abcdefghij
20if __name__ == "__main__": 1abcdefghij
21 app() 1abcdefghij