Skip to content
Myr

typing_confirmation_option.py

This file

Path

tests/typing/typing_confirmation_option.py

14 lines · 327 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–14why, one step back
1"""From https://click.palletsprojects.com/en/stable/options/#yes-parameters"""
23from typing_extensions import assert_type45import click678@click.command()9@click.confirmation_option(prompt="Are you sure you want to drop the db?")10def dropdb() -> None:11 click.echo("Dropped all tables!")121314assert_type(dropdb, click.Command)