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