mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-14 18:10:53 +00:00
🐛 Fix: RUF005
tuple 拼接 (#3572)
Co-authored-by: John Richard <windowserror@163.com>
This commit is contained in:
@ -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(
|
||||
|
Reference in New Issue
Block a user