From 501cea3888812485cee974be8e0583d2f2acb814 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Wed, 24 Sep 2025 11:30:52 +0800 Subject: [PATCH] a --- mypy.ini | 8 ++++++-- util/exceptions.py | 2 ++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/mypy.ini b/mypy.ini index 316b504..0c5bc83 100644 --- a/mypy.ini +++ b/mypy.ini @@ -1,7 +1,7 @@ [mypy] python_version = 3.9 -warn_return_any = True -warn_unused_configs = True +warn_return_any = False +warn_unused_configs = False disallow_untyped_defs = False disallow_incomplete_defs = False check_untyped_defs = False @@ -14,6 +14,7 @@ warn_unreachable = False strict_equality = False namespace_packages = True explicit_package_bases = True +show_error_codes = True # Exclude duplicate modules and legacy code exclude = biz/ffmpeg\.py @@ -35,4 +36,7 @@ ignore_missing_imports = True ignore_missing_imports = True [mypy-opentelemetry.*] +ignore_missing_imports = True + +[mypy-dotenv.*] ignore_missing_imports = True \ No newline at end of file diff --git a/util/exceptions.py b/util/exceptions.py index 8ea677a..4bd842f 100644 --- a/util/exceptions.py +++ b/util/exceptions.py @@ -1,3 +1,5 @@ +from typing import Optional + class RenderWorkerError(Exception): """RenderWorker基础异常类"""