mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-06-27 02:35:37 -04:00
config.py: silence new click mypy error
This commit is contained in:
parent
107ca5d86e
commit
774b526925
1 changed files with 1 additions and 1 deletions
|
@ -410,7 +410,7 @@ def prompt_config(
|
||||||
if bold:
|
if bold:
|
||||||
text = click.style(text, bold=True)
|
text = click.style(text, bold=True)
|
||||||
|
|
||||||
result = click.prompt(text, type=field_type, default=default, value_proc=value_conv, show_default=True)
|
result = click.prompt(text, type=field_type, default=default, value_proc=value_conv, show_default=True) # type: ignore
|
||||||
changed = (result != default) and (true_or_zero(default) or true_or_zero(result))
|
changed = (result != default) and (true_or_zero(default) or true_or_zero(result))
|
||||||
if changed and echo_changes:
|
if changed and echo_changes:
|
||||||
print(f'value changed: "{text}" = "{result}"')
|
print(f'value changed: "{text}" = "{result}"')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue