From ceed993d639ff053b20c61db5afdb8ced574841b Mon Sep 17 00:00:00 2001 From: gutianci Date: Thu, 5 Mar 2020 18:31:21 +0800 Subject: [PATCH] docs: testing.rst function def missing colon --- docs/testing.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/testing.rst b/docs/testing.rst index 01eef000f4..bd6b193349 100644 --- a/docs/testing.rst +++ b/docs/testing.rst @@ -420,7 +420,7 @@ command line. :: @app.cli.command('hello') @click.option('--name', default='World') - def hello_command(name) + def hello_command(name): click.echo(f'Hello, {name}!') def test_hello(): @@ -447,7 +447,7 @@ This is useful for testing complex validation rules and custom types. :: @app.cli.command('hello') @click.option('--name', default='World', callback=upper) - def hello_command(name) + def hello_command(name): click.echo(f'Hello, {name}!') def test_hello_params():