Skip to content

Commit b78bb85

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 7415a6c commit b78bb85

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

nonebot_plugin_marshoai/handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ async def handle_common_chat(
265265
Text(await process_completion_to_details(response)),
266266
command="detail",
267267
expired_at=timedelta(minutes=5),
268-
) # type:ignore
268+
) # type: ignore
269269
)
270270
# send_message.append(
271271
# Argot(

nonebot_plugin_marshoai/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def _load_package(self, package_name, package_path):
121121
package = importlib.util.module_from_spec(spec)
122122
self.imported_packages[package_name] = package
123123
sys.modules[package_name] = package
124-
spec.loader.exec_module(package) # type:ignore
124+
spec.loader.exec_module(package) # type: ignore
125125

126126
logger.success(f"成功加载工具包 {package_name}")
127127
except json.JSONDecodeError as e:

nonebot_plugin_marshoai/plugin/load.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved
44
本模块为工具加载模块
55
"""
6+
67
import os
78
import traceback
89
from importlib import import_module

nonebot_plugin_marshoai/utils/processor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ async def process_chat_stream(
2424
delta = chunk.choices[0].delta
2525
if (
2626
hasattr(delta, "reasoning_content")
27-
and delta.reasoning_content is not None # type:ignore
27+
and delta.reasoning_content is not None # type: ignore
2828
):
29-
reasoning_contents += delta.reasoning_content # type:ignore
29+
reasoning_contents += delta.reasoning_content # type: ignore
3030
else:
3131
if not is_answering:
3232
logger.info(

0 commit comments

Comments
 (0)