diff --git a/nonebot_plugin_marshoai/handler.py b/nonebot_plugin_marshoai/handler.py index 80b5ca9..ef178f2 100644 --- a/nonebot_plugin_marshoai/handler.py +++ b/nonebot_plugin_marshoai/handler.py @@ -265,7 +265,7 @@ class MarshoHandler: Text(await process_completion_to_details(response)), command="detail", expired_at=timedelta(minutes=5), - ) # type:ignore + ) # type: ignore ) # send_message.append( # Argot( diff --git a/nonebot_plugin_marshoai/models.py b/nonebot_plugin_marshoai/models.py index 1634f65..db87fa3 100755 --- a/nonebot_plugin_marshoai/models.py +++ b/nonebot_plugin_marshoai/models.py @@ -121,7 +121,7 @@ class MarshoTools: package = importlib.util.module_from_spec(spec) self.imported_packages[package_name] = package sys.modules[package_name] = package - spec.loader.exec_module(package) # type:ignore + spec.loader.exec_module(package) # type: ignore logger.success(f"成功加载工具包 {package_name}") except json.JSONDecodeError as e: diff --git a/nonebot_plugin_marshoai/plugin/load.py b/nonebot_plugin_marshoai/plugin/load.py index 7b69c8d..018dea3 100755 --- a/nonebot_plugin_marshoai/plugin/load.py +++ b/nonebot_plugin_marshoai/plugin/load.py @@ -3,6 +3,7 @@ Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved 本模块为工具加载模块 """ + import os import traceback from importlib import import_module diff --git a/nonebot_plugin_marshoai/utils/processor.py b/nonebot_plugin_marshoai/utils/processor.py index 317c8a7..b4fa1c3 100644 --- a/nonebot_plugin_marshoai/utils/processor.py +++ b/nonebot_plugin_marshoai/utils/processor.py @@ -24,9 +24,9 @@ async def process_chat_stream( delta = chunk.choices[0].delta if ( hasattr(delta, "reasoning_content") - and delta.reasoning_content is not None # type:ignore + and delta.reasoning_content is not None # type: ignore ): - reasoning_contents += delta.reasoning_content # type:ignore + reasoning_contents += delta.reasoning_content # type: ignore else: if not is_answering: logger.info(