From 8a770d18a75aae1a56c6b567cb7e5e79df28cd7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9=20=D0=95=D0=BC=D0=B5?= =?UTF-8?q?=D0=BB=D1=8C=D1=8F=D0=BD=D0=B5=D0=BD=D0=BA=D0=BE?= Date: Thu, 3 Sep 2026 11:33:39 +0300 Subject: [PATCH] Remove redundant cast to str (fixes mypy strict warn_redundant_casts) --- src/selectel_ml_tui/cli.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/selectel_ml_tui/cli.py b/src/selectel_ml_tui/cli.py index 186ea90..6fc2b2d 100644 --- a/src/selectel_ml_tui/cli.py +++ b/src/selectel_ml_tui/cli.py @@ -3,7 +3,6 @@ from __future__ import annotations from pathlib import Path -from typing import cast import click @@ -52,7 +51,7 @@ def _prompt_str( value = click.prompt(prompt, default="", hide_input=hide_input, show_default=False) if value == "": return current - return cast(str, value) + return value @click.group() @@ -198,4 +197,4 @@ def run() -> None: if __name__ == "__main__": - main() + main() \ No newline at end of file