Debian Codegraph @

tests/typing/typing_password_option.py

raw
1 import codecs
2
3 from typing_extensions import assert_type
4
5 import asyncclick as click
6
7
8 @click.command()
9 @click.password_option()
10 def encrypt(password: str) -> None:
11 click.echo(f"encoded: to {codecs.encode(password, 'rot13')}")
12
13
14 assert_type(encrypt, click.Command)