Skip to content
Myr

typing_options.py

This file

Path

tests/typing/typing_options.py

16 lines · 391 bytes · Python

Last changed by

Not known.

History of this file

Take it

The walk stopped after 200 commits: lines older than 9ce34f2 point at it.

Make faqs section. Add the first question about windows shell expansion. (#2927)Rowlando13before adoption9ce34f2

lines 1–16why, one step back
1"""From https://click.palletsprojects.com/en/stable/quickstart/#adding-parameters"""
23from typing_extensions import assert_type45import click678@click.command()9@click.option("--count", default=1, help="number of greetings")10@click.argument("name")11def hello(count: int, name: str) -> None:12 for _ in range(count):13 click.echo(f"Hello {name}!")141516assert_type(hello, click.Command)