From 38e40bd0def6ddedcb0b6c9537bad63022ec620c Mon Sep 17 00:00:00 2001 From: Ailitonia <41713304+Ailitonia@users.noreply.github.com> Date: Sun, 13 Jul 2025 13:36:38 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20Fix:=20`RUF005`=20tuple=20=E6=8B=BC?= =?UTF-8?q?=E6=8E=A5=20(#3572)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: John Richard --- nonebot/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nonebot/utils.py b/nonebot/utils.py index 066d9559..64637f9f 100644 --- a/nonebot/utils.py +++ b/nonebot/utils.py @@ -279,7 +279,7 @@ def path_to_module_name(path: Path) -> str: if rel_path.stem == "__init__": return ".".join(rel_path.parts[:-1]) else: - return ".".join(rel_path.parts[:-1] + (rel_path.stem,)) + return ".".join((*rel_path.parts[:-1], rel_path.stem)) def resolve_dot_notation(