This commit is contained in:
2025-09-24 11:30:52 +08:00
parent 873c89c778
commit 501cea3888
2 changed files with 8 additions and 2 deletions

View File

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

View File

@@ -1,3 +1,5 @@
from typing import Optional
class RenderWorkerError(Exception):
"""RenderWorker基础异常类"""