修复了大量存在的问题,增加了假鸭子类型等等机制

This commit is contained in:
2026-06-25 14:49:46 +08:00
parent 19f2787db0
commit d88d11b646
827 changed files with 32617 additions and 18316 deletions

View File

@@ -1,5 +1,8 @@
from __future__ import annotations
class Config:
"""配置类"""
def __init__(self):
self.debug = False
self.mode = 'relaxed' # 'relaxed' 或 'strict'
def __init__(self) -> None:
self.debug: bool = False
self.mode: str = 'relaxed' # 'relaxed' 或 'strict'