aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/click/py3/tests/typing/typing_version_option.py
blob: 7ff37a75fb03f705265a5484dbbf71e81483285a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"""
From https://click.palletsprojects.com/en/8.1.x/options/#callbacks-and-eager-options.
"""

from typing_extensions import assert_type

import click


@click.command()
@click.version_option("0.1")
def hello() -> None:
    click.echo("Hello World!")


assert_type(hello, click.Command)