We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e962e9 commit c530489Copy full SHA for c530489
astrbot/cli/commands/cmd_conf.py
@@ -2,7 +2,9 @@
2
import click
3
import hashlib
4
import zoneinfo
5
-from typing import Any, Callable
+from typing import Any
6
+
7
+from collections.abc import Callable
8
from ..utils import get_astrbot_root, check_astrbot_root
9
10
astrbot/cli/commands/cmd_plug.py
@@ -86,7 +86,7 @@ def new(name: str):
86
f.write(f"# {name}\n\n{desc}\n\n# 支持\n\n[帮助文档](https://astrbot.app)\n")
87
88
# 重写 main.py
89
- with open(plug_path / "main.py", "r", encoding="utf-8") as f:
+ with open(plug_path / "main.py", encoding="utf-8") as f:
90
content = f.read()
91
92
new_content = content.replace(
0 commit comments