mirror of
https://github.com/nonebot/nonebot2.git
synced 2026-09-07 18:03:59 +00:00
🐛 Fix: RUF005 tuple 拼接 (#3572)
Co-authored-by: John Richard <windowserror@163.com>
This commit is contained in:
co-authored by
John Richard
parent
2e04b01402
commit
38e40bd0de
+1
-1
@@ -279,7 +279,7 @@ def path_to_module_name(path: Path) -> str:
|
|||||||
if rel_path.stem == "__init__":
|
if rel_path.stem == "__init__":
|
||||||
return ".".join(rel_path.parts[:-1])
|
return ".".join(rel_path.parts[:-1])
|
||||||
else:
|
else:
|
||||||
return ".".join(rel_path.parts[:-1] + (rel_path.stem,))
|
return ".".join((*rel_path.parts[:-1], rel_path.stem))
|
||||||
|
|
||||||
|
|
||||||
def resolve_dot_notation(
|
def resolve_dot_notation(
|
||||||
|
|||||||
Reference in New Issue
Block a user