Skip to content
Myr

typing_version_option.py

This file

Path

tests/typing/typing_version_option.py

16 lines · 288 bytes · Python

Last changed by

Not known.

History of this file

Take it

1"""2From https://click.palletsprojects.com/en/stable/options/#callbacks-and-eager-options.3"""45from typing_extensions import assert_type67import click8910@click.command()11@click.version_option("0.1")12def hello() -> None:13    click.echo("Hello World!")141516assert_type(hello, click.Command)