refactor: enhance code readability by formatting multi-line parameters and comments; improve configuration handling in various classes for better maintainability

This commit is contained in:
gaclove
2025-09-26 06:01:34 +00:00
parent b311e23c0e
commit 06e2791795
5 changed files with 271 additions and 89 deletions
+5 -1
View File
@@ -86,7 +86,11 @@ class TeaCacheConfig:
use_ret_steps: bool = False
def to_dict(self) -> Dict[str, Any]:
return {"enable": self.enable, "threshold": self.threshold, "use_ret_steps": self.use_ret_steps}
return {
"enable": self.enable,
"threshold": self.threshold,
"use_ret_steps": self.use_ret_steps,
}
@dataclass