diff --git a/zhenxun/builtin_plugins/sign_in/utils.py b/zhenxun/builtin_plugins/sign_in/utils.py index 2ba3d0aa..15a54714 100644 --- a/zhenxun/builtin_plugins/sign_in/utils.py +++ b/zhenxun/builtin_plugins/sign_in/utils.py @@ -23,9 +23,9 @@ from .config import ( lik2relation, ) -assert len(level2attitude) == len(lik2level) == len(lik2relation), ( - "好感度态度、等级、关系长度不匹配!" -) +assert ( + len(level2attitude) == len(lik2level) == len(lik2relation) +), "好感度态度、等级、关系长度不匹配!" AVA_URL = "http://q1.qlogo.cn/g?b=qq&nk={}&s=160" diff --git a/zhenxun/builtin_plugins/superuser/reload_setting.py b/zhenxun/builtin_plugins/superuser/reload_setting.py index 6b805056..98cce1b1 100644 --- a/zhenxun/builtin_plugins/superuser/reload_setting.py +++ b/zhenxun/builtin_plugins/superuser/reload_setting.py @@ -62,7 +62,6 @@ async def _(session: EventSession, arparma: Arparma): await MessageUtils.build_message("重载完成!").send(reply_to=True) - @scheduler.scheduled_job( "interval", seconds=Config.get_config("reload_setting", "AUTO_RELOAD_TIME", 180), diff --git a/zhenxun/ui/builders/__init__.py b/zhenxun/ui/builders/__init__.py index 084da33d..5611282a 100644 --- a/zhenxun/ui/builders/__init__.py +++ b/zhenxun/ui/builders/__init__.py @@ -1,4 +1,3 @@ - from . import widgets from .core.layout import LayoutBuilder from .core.markdown import MarkdownBuilder diff --git a/zhenxun/ui/builders/presets/plugin_menu.py b/zhenxun/ui/builders/presets/plugin_menu.py index 55fabf3b..c8183aff 100644 --- a/zhenxun/ui/builders/presets/plugin_menu.py +++ b/zhenxun/ui/builders/presets/plugin_menu.py @@ -34,4 +34,3 @@ class PluginMenuBuilder(BaseBuilder[PluginMenuData]): for category in categories: self.add_category(category) return self - diff --git a/zhenxun/utils/_image_template.py b/zhenxun/utils/_image_template.py index 1ae0f979..7f27db76 100644 --- a/zhenxun/utils/_image_template.py +++ b/zhenxun/utils/_image_template.py @@ -283,6 +283,3 @@ class ImageTemplate: width = max(width, w) height += h return width, height - - -