1212
1313
1414@click .group ()
15- def main ():
15+ def main () -> None :
1616 """🐙 Mocktopus - Multi-armed mocks for LLM apps"""
1717
1818
@@ -27,7 +27,7 @@ def main():
2727@click .option ("--anthropic-key" , envvar = "ANTHROPIC_API_KEY" , help = "Anthropic API key for recording mode" )
2828@click .option ("--verbose" , "-v" , is_flag = True , help = "Verbose logging" )
2929def serve_cmd (scenario : str , port : int , host : str , mode : str , recordings_dir : str ,
30- openai_key : str , anthropic_key : str , verbose : bool ):
30+ openai_key : str , anthropic_key : str , verbose : bool ) -> None :
3131 """
3232 Start the Mocktopus server to mock LLM APIs.
3333
@@ -84,7 +84,7 @@ def serve_cmd(scenario: str, port: int, host: str, mode: str, recordings_dir: st
8484@click .option ("--model" , default = "gpt-4o-mini" , show_default = True , help = "Model to simulate" )
8585@click .option ("--prompt" , required = True , help = "User prompt to simulate" )
8686@click .option ("--stream/--no-stream" , default = False , show_default = True , help = "Stream the response" )
87- def simulate_cmd (scenario_file : str , model : str , prompt : str , stream : bool ):
87+ def simulate_cmd (scenario_file : str , model : str , prompt : str , stream : bool ) -> None :
8888 """
8989 Simulate an LLM call using a scenario file (without starting a server).
9090
@@ -113,7 +113,7 @@ def simulate_cmd(scenario_file: str, model: str, prompt: str, stream: bool):
113113
114114@main .command ("validate" )
115115@click .argument ("scenario_file" , type = click .Path (exists = True ))
116- def validate_cmd (scenario_file : str ):
116+ def validate_cmd (scenario_file : str ) -> None :
117117 """
118118 Validate a scenario YAML file.
119119
@@ -133,7 +133,7 @@ def validate_cmd(scenario_file: str):
133133@main .command ("example" )
134134@click .option ("--type" , "example_type" , type = click .Choice (["basic" , "streaming" , "tools" , "multi-model" ]),
135135 default = "basic" , help = "Type of example to generate" )
136- def example_cmd (example_type : str ):
136+ def example_cmd (example_type : str ) -> None :
137137 """
138138 Generate example scenario files.
139139
0 commit comments