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
+2 -3
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()
@@ -198,4 +197,4 @@ def run() -> None:
if __name__ == "__main__": if __name__ == "__main__":
main() main()