Remove redundant cast to str (fixes mypy strict warn_redundant_casts)

This commit is contained in:
2026-09-03 11:33:39 +03:00
parent 9b94482373
commit 8a770d18a7
+1 -2
View File
@@ -3,7 +3,6 @@
from __future__ import annotations from __future__ import annotations
from pathlib import Path from pathlib import Path
from typing import cast
import click import click
@@ -52,7 +51,7 @@ def _prompt_str(
value = click.prompt(prompt, default="", hide_input=hide_input, show_default=False) value = click.prompt(prompt, default="", hide_input=hide_input, show_default=False)
if value == "": if value == "":
return current return current
return cast(str, value) return value
@click.group() @click.group()