🐛 Fix: RUF005 tuple 拼接 (#3572)

Co-authored-by: John Richard <windowserror@163.com>
This commit is contained in:
Ailitonia
2025-07-13 13:36:38 +08:00
committed by GitHub
parent 2e04b01402
commit 38e40bd0de

View File

@ -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(