From 875f3d5f54b207bfc075714d0f8d81c71dd30160 Mon Sep 17 00:00:00 2001 From: fawney19 Date: Thu, 11 Dec 2025 10:08:09 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E9=85=8D=E7=BD=AE=20mypy=20=E5=BF=BD?= =?UTF-8?q?=E7=95=A5=E7=BC=BA=E5=A4=B1=E5=AF=BC=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加 ignore_missing_imports 配置,减少第三方库类型检查警告 --- pyproject.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index af32a0d..2be9233 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -95,6 +95,8 @@ warn_return_any = true warn_unused_configs = true disallow_untyped_defs = true exclude = "tools/debug" +# 忽略项目内部模块的 import-untyped 警告 +ignore_missing_imports = true [tool.pytest.ini_options] testpaths = ["tests"]