Compare commits

..

2 Commits

Author SHA1 Message Date
pre-commit-ci[bot]
ad4772283f [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2026-01-19 19:33:44 +00:00
pre-commit-ci[bot]
cf670db935 [pre-commit.ci] pre-commit autoupdate
updates:
- https://github.com/psf/blackhttps://github.com/psf/black-pre-commit-mirror
- [github.com/psf/black-pre-commit-mirror: 25.1.0 → 26.1.0](https://github.com/psf/black-pre-commit-mirror/compare/25.1.0...26.1.0)
- [github.com/PyCQA/isort: 6.0.1 → 7.0.0](https://github.com/PyCQA/isort/compare/6.0.1...7.0.0)
- [github.com/pre-commit/mirrors-mypy: v1.17.1 → v1.19.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.17.1...v1.19.1)
2026-01-19 19:33:35 +00:00
5 changed files with 9 additions and 8 deletions

View File

@@ -8,20 +8,20 @@ repos:
language: python
files: \.py$
- repo: https://github.com/psf/black
rev: 25.1.0
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 26.1.0
hooks:
- id: black
args: [--config=./pyproject.toml]
- repo: https://github.com/PyCQA/isort
rev: 6.0.1
rev: 7.0.0
hooks:
- id: isort
args: ["--profile", "black"]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.17.1
rev: v1.19.1
hooks:
- id: mypy

View File

@@ -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(

View File

@@ -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:

View File

@@ -3,6 +3,7 @@
Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved
本模块为工具加载模块
"""
import os
import traceback
from importlib import import_module

View File

@@ -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(