Testing Typer applications is very easy with pytest. ... Typer() @app.command() def main(name: str, city: Optional[str] = None): typer.echo(f"Hello {name}") ...
確定! 回上一頁