🎈 auto fixes by pre-commit hooks

This commit is contained in:
pre-commit-ci[bot]
2025-03-13 09:52:03 +00:00
parent 620e74a6aa
commit 60e58b4f5f
3 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ from astrbot.core.message.components import (
At,
AtAll,
Forward,
Reply
Reply,
)
from astrbot.core.utils.metrics import Metric
from astrbot.core.provider.entites import ProviderRequest
@@ -4,6 +4,7 @@ from typing import Dict, List, Awaitable
from dataclasses import dataclass
from astrbot import logger
@dataclass
class FuncTool:
"""
+3 -1
View File
@@ -485,7 +485,9 @@ class PluginManager:
for handler in star_handlers_registry.get_handlers_by_module_name(
plugin_module_path
):
logger.info(f"移除了插件 {plugin_name} 的处理函数 {handler.handler_name} ({len(star_handlers_registry)})")
logger.info(
f"移除了插件 {plugin_name} 的处理函数 {handler.handler_name} ({len(star_handlers_registry)})"
)
star_handlers_registry.remove(handler)
keys_to_delete = [
k