From dbfd881d7b64878e2b3695f5fc4aaa7252760030 Mon Sep 17 00:00:00 2001 From: Mariam Ahhttouche Date: Sat, 7 Mar 2026 21:45:35 +0000 Subject: [PATCH] Add typing in Update plugins/modules/uv_python.py Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com> --- plugins/modules/uv_python.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/modules/uv_python.py b/plugins/modules/uv_python.py index ae5367276d..d1579472fd 100644 --- a/plugins/modules/uv_python.py +++ b/plugins/modules/uv_python.py @@ -214,11 +214,11 @@ class UV: latest_version_str, latest_path = self._get_latest_patch_release("--only-installed", "--managed-python") return True, out, err, rc, [latest_version_str], [latest_path] - def _exec(self, python_version, command, *args, check_rc=False) -> tuple[int, str, str]: + def _exec(self, python_version: str, command, *args, check_rc=False) -> tuple[int, str, str]: """ Execute a uv python subcommand. Args: - python_version (str): Python version specifier (e.g. "3.12", "3.12.3"). + python_version: Python version specifier (e.g. "3.12", "3.12.3"). command (str): uv python subcommand (e.g. "install", "uninstall", "find"). *args: Additional positional arguments passed to the command. check_rc (bool): Whether to fail if the command exits with non-zero return code.